toArray.js 396 B

12345678910111213
  1. var arrayWithHoles = require("./arrayWithHoles");
  2. var iterableToArray = require("./iterableToArray");
  3. var unsupportedIterableToArray = require("./unsupportedIterableToArray");
  4. var nonIterableRest = require("./nonIterableRest");
  5. function _toArray(arr) {
  6. return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
  7. }
  8. module.exports = _toArray;