mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
react app
This commit is contained in:
25
react-app/node_modules/babel-runtime/helpers/sliced-to-array-loose.js
generated
vendored
Normal file
25
react-app/node_modules/babel-runtime/helpers/sliced-to-array-loose.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
|
||||
var _isIterable = require("babel-runtime/core-js/is-iterable")["default"];
|
||||
|
||||
var _getIterator = require("babel-runtime/core-js/get-iterator")["default"];
|
||||
|
||||
exports["default"] = function (arr, i) {
|
||||
if (Array.isArray(arr)) {
|
||||
return arr;
|
||||
} else if (_isIterable(Object(arr))) {
|
||||
var _arr = [];
|
||||
|
||||
for (var _iterator = _getIterator(arr), _step; !(_step = _iterator.next()).done;) {
|
||||
_arr.push(_step.value);
|
||||
|
||||
if (i && _arr.length === i) break;
|
||||
}
|
||||
|
||||
return _arr;
|
||||
} else {
|
||||
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
||||
}
|
||||
};
|
||||
|
||||
exports.__esModule = true;
|
Reference in New Issue
Block a user