You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
286 B

4 years ago
  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;