initial commit

This commit is contained in:
air66
2019-07-24 18:16:32 +01:00
commit 5efebf4ded
8591 changed files with 899103 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
"use strict";
var isImplemented = require("../../../../array/#/find-index/is-implemented");
module.exports = function (a) {
a(isImplemented(), true);
};

View File

@@ -0,0 +1,3 @@
"use strict";
module.exports = require("./shim");

View File

@@ -0,0 +1,5 @@
"use strict";
module.exports = function (t, a) {
a(typeof t(), "boolean");
};

17
node_modules/es5-ext/test/array/#/find-index/shim.js generated vendored Normal file
View File

@@ -0,0 +1,17 @@
"use strict";
exports.__generic = function (t, a) {
var count = 0, o = {}, self = Object(this);
a(t.call(self, function (value, i, scope) {
a(value, this[i], "Value");
a(i, count++, "Index");
a(scope, this, "Scope");
}, self), -1, "Falsy result");
a(count, 3);
count = -1;
a(t.call(this, function () {
return ++count ? o : null;
}, this), 1, "Truthy result");
a(count, 1);
};