Lines Matching refs:findIndex
28 assertEquals(1, Array.prototype.findIndex.length);
31 assertEquals(-1, a.findIndex(function() { return false; }));
32 assertEquals(-1, a.findIndex(function(val) { return 121 === val; }));
33 assertEquals(0, a.findIndex(function() { return true; }));
34 assertEquals(1, a.findIndex(function(val) { return 22 === val; }), undefined);
35 assertEquals(2, a.findIndex(function(val) { return 23 === val; }), null);
36 assertEquals(3, a.findIndex(function(val) { return 24 === val; }));
49 a.findIndex(function(val, key, obj) {
75 var index = a.findIndex(function(val, key, obj) {
99 a.findIndex(function() {
118 var index = Array.prototype.findIndex.call(a, function(val, key, obj) {
133 index = Array.prototype.findIndex.apply(a, [function(val, key, obj) {
168 var index = Array.prototype.findIndex.call(a, function(val, key, obj) {
190 a.findIndex(function(val) { a.push(val); return false; });
195 a.findIndex(function(val, key) { a[key] = ++val; return false; });
211 a.findIndex(function() { count++; return false; });
219 var index = a.findIndex(function(val) { return val === undefined; });
231 var index = a.findIndex(function(val) { return val === 42; });
241 var index = [1, 2, 3].findIndex(function(val, key) {
254 index = ["a", "b", "c"].findIndex(function(val, key) {
262 [1, 2].findIndex(function() { a.push(this) }, "");
267 [1, 2].findIndex(function() { a.push(this) }, {});
272 [1, 2].findIndex(function() { 'use strict'; a.push(this); }, "");