UNPKG

379 BJavaScriptView Raw
1import arrayWithHoles from "./arrayWithHoles.js";
2import iterableToArray from "./iterableToArray.js";
3import unsupportedIterableToArray from "./unsupportedIterableToArray.js";
4import nonIterableRest from "./nonIterableRest.js";
5export default function _toArray(arr) {
6 return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
7}
\No newline at end of file