added whole system from ola4doc
This commit is contained in:
+9
@@ -0,0 +1,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");
|
||||
};
|
||||
Reference in New Issue
Block a user