toArray.js 379 B

1234567
  1. import arrayWithHoles from "./arrayWithHoles.js";
  2. import iterableToArray from "./iterableToArray.js";
  3. import unsupportedIterableToArray from "./unsupportedIterableToArray.js";
  4. import nonIterableRest from "./nonIterableRest.js";
  5. export default function _toArray(arr) {
  6. return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
  7. }