11 lines
No EOL
286 B
JavaScript
11 lines
No EOL
286 B
JavaScript
var arrayWithHoles = require("./arrayWithHoles");
|
|
|
|
var iterableToArray = require("./iterableToArray");
|
|
|
|
var nonIterableRest = require("./nonIterableRest");
|
|
|
|
function _toArray(arr) {
|
|
return arrayWithHoles(arr) || iterableToArray(arr) || nonIterableRest();
|
|
}
|
|
|
|
module.exports = _toArray; |