mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-12 18:52:50 +00:00
10 lines
236 B
JavaScript
10 lines
236 B
JavaScript
'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");
|
|
};
|