Skip to content

Commit f43b277

Browse files
committed
fix: correct isEmpty method
1 parent 8eb27de commit f43b277

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/utility.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const isNil = (x) => x === undefined || x === null;
4141
*/
4242
const isEmpty = (x) =>
4343
x === '' ||
44-
(isArray(x) && x.length) === 0 ||
44+
(isArray(x) && x.length === 0) ||
4545
(isObject(x) && Object.keys(x).length === 0);
4646

4747
/**

0 commit comments

Comments
 (0)