Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eeb408a

Browse files
2727 : Is Object Empty
1 parent dccd429 commit eeb408a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* @param {Object|Array} obj
3+
* @return {boolean}
4+
*/
5+
var isEmpty = function(obj) {
6+
return (Object.values(obj).length === 0) ? true : false;
7+
};

0 commit comments

Comments
 (0)