UNPKG

360 BJavaScriptView Raw
1"use strict";
2
3exports.__esModule = true;
4
5exports.default = function (obj) {
6 if (obj && obj.__esModule) {
7 return obj;
8 } else {
9 var newObj = {};
10
11 if (obj != null) {
12 for (var key in obj) {
13 if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];
14 }
15 }
16
17 newObj.default = obj;
18 return newObj;
19 }
20};
\No newline at end of file