You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5 lines
286 B

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