new generic function

This commit is contained in:
Daniel Herrero 2017-12-21 14:09:02 +01:00
parent 3fe9e3d325
commit 862420e434
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
import {module} from '../module';
const isFullEmpty = item => {
return (!item && item !== 0) || (typeof item === 'object' && !Object.keys(item).length);
};
export default isFullEmpty;
export const NAME = 'isFullEmpty';
module.value(NAME, isFullEmpty);