mirror of
https://github.com/cp6/my-idlers.git
synced 2025-04-19 17:48:36 +00:00
9 lines
267 B
JavaScript
9 lines
267 B
JavaScript
"use strict";
|
|
|
|
var toShortString = require("../to-short-string-representation")
|
|
, isArray = require("./is-array-like");
|
|
|
|
module.exports = function (value) {
|
|
if (isArray(value)) return value;
|
|
throw new TypeError(toShortString(value) + " is not a array");
|
|
};
|