validate.js 178 B

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