Blame view
node_modules/es5-ext/iterable/validate-object.js
236 Bytes
f7563de62
|
1 2 3 4 5 6 7 8 9 |
'use strict'; var isObject = require('../object/is-object') , is = require('./is'); module.exports = function (x) { if (is(x) && isObject(x)) return x; throw new TypeError(x + " is not an iterable or array-like object"); }; |