toConsumableArray.js 392 B

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