Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
function _interopRequireWildcard(obj) {
if (obj && obj.__esModule) {
return obj;
} else {
var newObj = {};
if (obj != null) {
for (var key in obj) {
if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];
}
}
newObj.default = obj;
return newObj;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment