export const isObjEmpty = (obj) => Object.keys(obj).length === 0 export function format_angka(num) { var num_parts = num.toString().split("."); num_parts[0] = num_parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, "."); return num_parts.join(","); }