validate-array-like.js 190 B

12345678
  1. 'use strict';
  2. var isArrayLike = require('./is-array-like');
  3. module.exports = function (obj) {
  4. if (isArrayLike(obj)) return obj;
  5. throw new TypeError(obj + " is not array-like value");
  6. };