Skip to content

Commit cc7108c

Browse files
committed
Update index.js one-liner Array.prototype.isEmpty
1 parent f1da68c commit cc7108c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ Object.prototype.isEmpty = (obj) => {
1414
}
1515

1616
Array.prototype.isEmpty = (arr) => {
17-
if (arr === undefined || arr.length === 0) return false
18-
return true
17+
return (arr === undefined || arr.length === 0) ? false : true
1918
}
2019

2120
const execResult = (err = null, out, outerr = null) => {

0 commit comments

Comments
 (0)