toArray.js 388 B

12345678
  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. function _toArray(r) {
  6. return arrayWithHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableRest();
  7. }
  8. export { _toArray as default };