summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/escope/node_modules/es6-map/node_modules/es5-ext/array/valid-array.js
blob: d86a8f5f242b27a19981dd1751ec4ca9985f0c34 (plain)
1
2
3
4
5
6
7
8
'use strict';

var isArray = Array.isArray;

module.exports = function (value) {
	if (isArray(value)) return value;
	throw new TypeError(value + " is not an array");
};