]> gerrit.simantics Code Review - simantics/district.git/blob - es5-ext/array/valid-array.js
Hide "enabled" column for non-component type tech type tables
[simantics/district.git] / es5-ext / array / valid-array.js
1 'use strict';
2
3 var isArray = Array.isArray;
4
5 module.exports = function (value) {
6         if (isArray(value)) return value;
7         throw new TypeError(value + " is not an array");
8 };