_to_array.js 796 B

1234567891011121314151617
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = _toArray;
  6. var _arrayWithHolesMjs = _interopRequireDefault(require("./_array_with_holes.js"));
  7. var _iterableToArrayMjs = _interopRequireDefault(require("./_iterable_to_array.js"));
  8. var _nonIterableRestMjs = _interopRequireDefault(require("./_non_iterable_rest.js"));
  9. var _unsupportedIterableToArrayMjs = _interopRequireDefault(require("./_unsupported_iterable_to_array.js"));
  10. function _toArray(arr) {
  11. return (0, _arrayWithHolesMjs).default(arr) || (0, _iterableToArrayMjs).default(arr) || (0, _unsupportedIterableToArrayMjs).default(arr, i) || (0, _nonIterableRestMjs).default();
  12. }
  13. function _interopRequireDefault(obj) {
  14. return obj && obj.__esModule ? obj : {
  15. default: obj
  16. };
  17. }