aswi2020vldc-gitlab/templetes/node_modules/babel-runtime/helpers/toConsumableArray.js @ 10920ea3
1 |
"use strict"; |
---|---|
2 | |
3 |
exports.__esModule = true; |
4 | |
5 |
var _from = require("../core-js/array/from"); |
6 | |
7 |
var _from2 = _interopRequireDefault(_from); |
8 | |
9 |
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
10 | |
11 |
exports.default = function (arr) { |
12 |
if (Array.isArray(arr)) { |
13 |
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { |
14 |
arr2[i] = arr[i]; |
15 |
}
|
16 | |
17 |
return arr2; |
18 |
} else { |
19 |
return (0, _from2.default)(arr); |
20 |
}
|
21 |
};
|