]> 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/object/every.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 / object / every.js
1 'use strict';
2
3 var o = { 1: 1, 2: 2, 3: 3 };
4
5 module.exports = function (t, a) {
6         var o2 = {};
7         t(o, function (value, name) {
8                 o2[name] = value;
9                 return true;
10         });
11         a(JSON.stringify(o2), JSON.stringify(o), "Iterates");
12
13         a(t(o, function () {
14                 return true;
15         }), true, "Succeeds");
16
17         a(t(o, function () {
18                 return false;
19         }), false, "Fails");
20
21 };