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 7896123 commit c586ed6Copy full SHA for c586ed6
src/is-object-empty.js
@@ -1,7 +1,8 @@
1
-import { isObject } from '@codevor/js-is-type';
+import { isObject, isArray } from '@codevor/js-is-type';
2
3
import isArrayEmpty from './is-array-empty';
4
5
-const isObjectEmpty = value => isObject(value) && isArrayEmpty(Object.keys(value));
+const isObjectEmpty = value =>
6
+ isObject(value) && !isArray(value) && isArrayEmpty(Object.keys(value));
7
8
export default isObjectEmpty;
0 commit comments