valid-array.js 169 B

12345678
  1. 'use strict';
  2. var isArray = Array.isArray;
  3. module.exports = function (value) {
  4. if (isArray(value)) return value;
  5. throw new TypeError(value + " is not an array");
  6. };