]> gerrit.simantics Code Review - simantics/district.git/blob - es5-ext/array/_is-extensible.js
Hide "enabled" column for non-component type tech type tables
[simantics/district.git] / es5-ext / array / _is-extensible.js
1 'use strict';
2
3 module.exports = (function () {
4         var SubArray = require('./_sub-array-dummy'), arr;
5
6         if (!SubArray) return false;
7         arr = new SubArray();
8         if (!Array.isArray(arr)) return false;
9         if (!(arr instanceof SubArray)) return false;
10
11         arr[34] = 'foo';
12         return (arr.length === 35);
13 }());