remove typeof object check for interop-require-wildcard helper

This commit is contained in:
Sebastian McKenzie 2015-04-28 15:32:09 +01:00
parent cfffaf6cdb
commit 04344026bb

View File

@ -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];
}