to-array.js 176 B

123456789
  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. };