mirror of
https://github.com/zhigang1992/styled-components.git
synced 2026-01-12 17:52:45 +08:00
Update packages/styled-components/src/utils/isPlainObject.js
Co-authored-by: Jason Miller <developit@users.noreply.github.com>
This commit is contained in:
@@ -5,4 +5,4 @@ export default (x: any): boolean =>
|
||||
typeof x === 'object' &&
|
||||
(x.toString ? x.toString() : Object.prototype.toString.call(x)) === '[object Object]' &&
|
||||
/* check for reasonable markers that the object isn't an element for react & preact/compat */
|
||||
!(x.$$typeof && ('_owner' in x) || x.__v);
|
||||
!('props' in x && (x.$$typeof || x.constructor === undefined));
|
||||
|
||||
Reference in New Issue
Block a user