summaryrefslogtreecommitdiff
path: root/school/node_modules/@babel/runtime/helpers/esm/toArray.js
blob: ad7c871a54b0a68526a0508fd898507a89ac47e7 (plain)
1
2
3
4
5
6
7
import arrayWithHoles from "./arrayWithHoles.js";
import iterableToArray from "./iterableToArray.js";
import unsupportedIterableToArray from "./unsupportedIterableToArray.js";
import nonIterableRest from "./nonIterableRest.js";
export default function _toArray(arr) {
  return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
}