2024-01-16 21:26:16 +08:00
|
|
|
import arrayWithHoles from "./arrayWithHoles.js";
|
|
|
|
import iterableToArray from "./iterableToArray.js";
|
|
|
|
import unsupportedIterableToArray from "./unsupportedIterableToArray.js";
|
|
|
|
import nonIterableRest from "./nonIterableRest.js";
|
2023-12-18 13:12:25 +08:00
|
|
|
export default function _toArray(arr) {
|
2024-01-16 21:26:16 +08:00
|
|
|
return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
|
2023-12-18 13:12:25 +08:00
|
|
|
}
|