remove typeof object check for interop-require-wildcard helper
This commit is contained in:
parent
cfffaf6cdb
commit
04344026bb
@ -3,7 +3,7 @@
|
||||
return obj;
|
||||
} else {
|
||||
var newObj = {};
|
||||
if (typeof obj === "object" && obj !== null) {
|
||||
if (obj !== null) {
|
||||
for (var key in obj) {
|
||||
if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user