]> gerrit.simantics Code Review - simantics/district.git/blobdiff - 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
diff --git a/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 b/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
new file mode 100644 (file)
index 0000000..32dc8c2
--- /dev/null
@@ -0,0 +1,24 @@
+'use strict';
+
+module.exports = {
+       __generic: function (t, a) {
+               var count = 0, self;
+
+               self = Object(this);
+               a.deep(t.call(self, function (v, i, scope) {
+                       a(v, this[i], "Value");
+                       a(i, count++, "Index");
+                       a(scope, this, "Scope");
+                       return i;
+               }, self), { 0: [this[0]], 1: [this[1]], 2: [this[2]] });
+       },
+       "": function (t, a) {
+               var r;
+               r = t.call([2, 3, 3, 4, 5, 6, 7, 7, 23, 45, 34, 56],
+                       function (v) {
+                               return v % 2 ? 'odd' : 'even';
+                       });
+               a.deep(r.odd, [3, 3, 5, 7, 7, 23, 45]);
+               a.deep(r.even, [2, 4, 6, 34, 56]);
+       }
+};