to-array.js 176B

12345678910
  1. "use strict";
  2. var from = require("./from")
  3. , isArray = Array.isArray;
  4. module.exports = function (arrayLike) {
  5. return isArray(arrayLike) ? arrayLike : from(arrayLike);
  6. };