packages/babel-runtime-corejs2/helpers/esm/toArray.js
raw| 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 | } |