0
0
mirror of https://github.com/Doodle3D/Doodle3D-API synced 2024-12-23 14:13:47 +01:00
Doodle3D-API/jspm_packages/npm/babel-runtime@5.6.20/helpers/to-consumable-array.js
2015-07-15 15:06:18 +02:00

15 lines
339 B
JavaScript

/* */
"use strict";
var _Array$from = require("../core-js/array/from")["default"];
exports["default"] = function(arr) {
if (Array.isArray(arr)) {
for (var i = 0,
arr2 = Array(arr.length); i < arr.length; i++)
arr2[i] = arr[i];
return arr2;
} else {
return _Array$from(arr);
}
};
exports.__esModule = true;