Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dccd429 commit eeb408aCopy full SHA for eeb408a
2727-Is-Object-Empty/2727-IsObjectEmpty.js
@@ -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