Няма описание

slicedToArray-172f4624.js 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. "use strict";
  2. function _arrayWithHoles(arr) {
  3. if (Array.isArray(arr)) return arr;
  4. }
  5. function _iterableToArrayLimit(arr, i) {
  6. if (
  7. !(
  8. Symbol.iterator in Object(arr) ||
  9. Object.prototype.toString.call(arr) === "[object Arguments]"
  10. )
  11. ) {
  12. return;
  13. }
  14. var _arr = [];
  15. var _n = true;
  16. var _d = false;
  17. var _e = undefined;
  18. try {
  19. for (
  20. var _i = arr[Symbol.iterator](), _s;
  21. !(_n = (_s = _i.next()).done);
  22. _n = true
  23. ) {
  24. _arr.push(_s.value);
  25. if (i && _arr.length === i) break;
  26. }
  27. } catch (err) {
  28. _d = true;
  29. _e = err;
  30. } finally {
  31. try {
  32. if (!_n && _i["return"] != null) _i["return"]();
  33. } finally {
  34. if (_d) throw _e;
  35. }
  36. }
  37. return _arr;
  38. }
  39. function _nonIterableRest() {
  40. throw new TypeError("Invalid attempt to destructure non-iterable instance");
  41. }
  42. function _slicedToArray(arr, i) {
  43. return (
  44. _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest()
  45. );
  46. }
  47. exports._slicedToArray = _slicedToArray;
  48. //# sourceMappingURL=slicedToArray-172f4624.js.map