This commit is contained in:
Simon Priet
2021-09-05 22:53:58 +02:00
commit 9e2991e668
17888 changed files with 1263126 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
"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,3 @@
"use strict";
module.exports = function (t, a) { a(typeof t(), "boolean"); };

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

@@ -0,0 +1,23 @@
"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);
};