UNPKG

1.71 kBJavaScriptView Raw
1"use strict";var defineProperty=require("./define-property-76ff0153.js"),es6_string_iterator=require("./es6.string.iterator-8571ba88.js");defineProperty.$export(defineProperty.$export.S,"Array",{isArray:defineProperty.isArray});var isArray=defineProperty.require$$1.Array.isArray,isArray$1=isArray;function _arrayWithHoles(r){if(isArray$1(r))return r}var TAG=defineProperty.wks("toStringTag"),ARG="Arguments"==defineProperty.cof(function(){return arguments}()),tryGet=function(r,e){try{return r[e]}catch(r){}},_classof=function(r){var e,t,o;return void 0===r?"Undefined":null===r?"Null":"string"==typeof(t=tryGet(e=Object(r),TAG))?t:ARG?defineProperty.cof(e):"Object"==(o=defineProperty.cof(e))&&"function"==typeof e.callee?"Arguments":o},ITERATOR=defineProperty.wks("iterator"),core_getIteratorMethod=defineProperty.require$$1.getIteratorMethod=function(r){if(null!=r)return r[ITERATOR]||r["@@iterator"]||es6_string_iterator.Iterators[_classof(r)]},core_getIterator=defineProperty.require$$1.getIterator=function(r){var e=core_getIteratorMethod(r);if("function"!=typeof e)throw TypeError(r+" is not iterable!");return defineProperty.anObject(e.call(r))},getIterator=core_getIterator,getIterator$1=getIterator;function _iterableToArrayLimit(r,e){var t=[],o=!0,n=!1,i=void 0;try{for(var a,f=getIterator$1(r);!(o=(a=f.next()).done)&&(t.push(a.value),!e||t.length!==e);o=!0);}catch(r){n=!0,i=r}finally{try{o||null==f.return||f.return()}finally{if(n)throw i}}return t}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_nonIterableRest()}exports._slicedToArray=_slicedToArray;