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.
index.js
Array.prototype.isEmpty
1 parent f1da68c commit cc7108cCopy full SHA for cc7108c
index.js
@@ -14,8 +14,7 @@ Object.prototype.isEmpty = (obj) => {
14
}
15
16
Array.prototype.isEmpty = (arr) => {
17
- if (arr === undefined || arr.length === 0) return false
18
- return true
+ return (arr === undefined || arr.length === 0) ? false : true
19
20
21
const execResult = (err = null, out, outerr = null) => {
0 commit comments