Aucune description

slicedToArray-4cd9e6d3.js 1.0KB

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