Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created August 14, 2016 08:21
Show Gist options
  • Save chuck0523/8034332d5b6d0ddd78d5da5aef9ff85c to your computer and use it in GitHub Desktop.
Save chuck0523/8034332d5b6d0ddd78d5da5aef9ff85c to your computer and use it in GitHub Desktop.
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