Skip to content

Commit f67cc03

Browse files
committed
FIX: support isPlainObj with constructor keys
Specifically look for a function instead of any value Closes #1623
1 parent 8476038 commit f67cc03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/isPlainObj.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
export default function isPlainObj(value) {
99
return (
1010
value &&
11-
((value.constructor && value.constructor.name === 'Object') ||
12-
value.constructor === undefined)
11+
(typeof value.constructor !== 'function' ||
12+
value.constructor.name === 'Object')
1313
);
1414
}

0 commit comments

Comments
 (0)