toArray.js 286 B

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