This repository was archived by the owner on Jul 23, 2021. It is now read-only.
This repository was archived by the owner on Jul 23, 2021. It is now read-only.
[Bug] isPlainObj fn not compatible for IE11 #159
Closed
Description
From @binarykitchen on Thu, 31 Oct 2019 02:53:06 GMT
This implementation is breaking on IE11
function isPlainObj(value) {
return (
value &&
(typeof value.constructor !== 'function' ||
value.constructor.name === 'Object')
);
}
Always returns false.
Refer to https://stackoverflow.com/questions/25140723/constructor-name-is-undefined-in-internet-explorer
Copied from original issue: immutable-js#1745