Files
notesnook/packages/core/api/sync/utils.js
2020-10-29 14:02:41 +05:00

7 lines
189 B
JavaScript

function areAllEmpty(obj) {
const arrays = Object.values(obj).filter((v) => v && v.length !== undefined);
return arrays.every((array) => array.length === 0);
}
export { areAllEmpty };