salix/front/core/lib/full-empty.js

8 lines
178 B
JavaScript
Raw Permalink Normal View History

2018-02-10 15:18:01 +00:00
function isFullEmpty(item) {
return (item === null || item === undefined) ||
(typeof item === 'object' && !Object.keys(item).length);
}
export default isFullEmpty;