toArray.js 367 B

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