]> 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/#/group.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 / # / group.js
1 'use strict';
2
3 module.exports = {
4         __generic: function (t, a) {
5                 var count = 0, self;
6
7                 self = Object(this);
8                 a.deep(t.call(self, function (v, i, scope) {
9                         a(v, this[i], "Value");
10                         a(i, count++, "Index");
11                         a(scope, this, "Scope");
12                         return i;
13                 }, self), { 0: [this[0]], 1: [this[1]], 2: [this[2]] });
14         },
15         "": function (t, a) {
16                 var r;
17                 r = t.call([2, 3, 3, 4, 5, 6, 7, 7, 23, 45, 34, 56],
18                         function (v) {
19                                 return v % 2 ? 'odd' : 'even';
20                         });
21                 a.deep(r.odd, [3, 3, 5, 7, 7, 23, 45]);
22                 a.deep(r.even, [2, 4, 6, 34, 56]);
23         }
24 };