]> 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/#/find-index/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 / # / find-index / shim.js
1 'use strict';
2
3 exports.__generic = function (t, a) {
4         var count = 0, o = {}, self = Object(this);
5         a(t.call(self, function (value, i, scope) {
6                 a(value, this[i], "Value");
7                 a(i, count++, "Index");
8                 a(scope, this, "Scope");
9         }, self), -1, "Falsy result");
10         a(count, 3);
11
12         count = -1;
13         a(t.call(this, function () {
14                 return ++count ? o : null;
15         }, this), 1, "Truthy result");
16         a(count, 1);
17 };