]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/test/array/#/filter/shim.js
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / node_modules / node-gyp / node_modules / path-array / node_modules / array-index / node_modules / es6-symbol / node_modules / es5-ext / test / array / # / filter / shim.js
1 'use strict';
2
3 var SubArray = require('../../../../array/_sub-array-dummy-safe');
4
5 module.exports = function (t, a) {
6         var arr, x = {}, subArr, result;
7
8         arr = ['foo', undefined, 0, '2d', false, x, null];
9
10         a.deep(t.call(arr, Boolean), ['foo', '2d', x], "Plain array");
11
12         subArr = new SubArray('foo', undefined, 0, '2d', false, x, null);
13
14         result = t.call(subArr, Boolean);
15         a(result instanceof SubArray, true, "Instance of subclass");
16         a.deep(result, ['foo', '2d', x], "Result of subclass");
17 };