mirror of
https://github.com/cp6/my-idlers.git
synced 2025-04-21 18:48:37 +00:00
9 lines
249 B
JavaScript
Vendored
9 lines
249 B
JavaScript
Vendored
"use strict";
|
|
|
|
var isArrayLike = require("./is-array-like")
|
|
, isObject = require("./is-object");
|
|
|
|
module.exports = function (obj) {
|
|
if (isObject(obj) && isArrayLike(obj)) return obj;
|
|
throw new TypeError(obj + " is not array-like object");
|
|
};
|