Home
last modified time | relevance | path

Searched refs:findIndex (Results 1 - 10 of 10) sorted by relevance

/arkcompiler/ets_runtime/test/moduletest/arrayFindIndexCase/
H A DfindIndex.js17 * @tc.name:findIndex
18 * @tc.desc:test array.findIndex
25 print(array1.findIndex(isLargeNumber));
33 print(Array.prototype.findIndex.call(arrayLike, (x) => !Number.isInteger(x)));
34 print([1, , 3].findIndex((x) => x === undefined));
46 print([4, 6, 8, 9, 12].findIndex(isPrime));
47 print([4, 6, 7, 9, 12].findIndex(isPrime));
50 const deleteWords = words.findIndex((word, index, arr) => {
65 print(array.findIndex(hasFirst));
/arkcompiler/ets_runtime/test/moduletest/arrayfindindex/
H A Darrayfindindex.js18 * @tc.desc:test Array.findIndex
25 var index = a.findIndex(function(val){
34 function findIndex() { function
35 return array1.findIndex(v => v > 0);
38 print(findIndex())
53 try { v3.findIndex(f4);} catch (err) { print(err)};
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/escompat/array_js_suites/
H A Dtest_find_index.js39 let found = arr.findIndex(fnTrue);
41 let foundStatic = Array.findIndex(fnTrue, arr);
44 let foundNot = arr.findIndex(fnFalse);
46 let foundNotStatic = Array.findIndex(fnFalse, arr);
/arkcompiler/ets_runtime/test/aottest/bigint_typed_array_constructors/
H A Dbigint_typed_array_constructors.js23 result = sample.findIndex(function() { return NaN; });
/arkcompiler/ets_runtime/test/moduletest/array/
H A Darray.js1251 print(array.findIndex(item => item === 5));
1252 print(array.findIndex(item => item === 11));
1253 print(array.findIndex(item => item > 5));
1254 print(array.findIndex(item => item < 0));
1255 print(array.findIndex(item => typeof item === 'string'));
1256 print(array.findIndex(item => typeof item === 'object'));
1257 print(array.findIndex(item => Array.isArray(item)));
1258 print(array.findIndex(item => item));
1259 print(array.findIndex(item => item === null));
1260 print(array.findIndex(ite
[all...]
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
H A Dbuiltins_typedarray_stub_builder.cpp534 Label findIndex(env); in LastIndexOf()
542 Jump(&findIndex); in LastIndexOf()
557 Jump(&findIndex); in LastIndexOf()
568 Jump(&findIndex); in LastIndexOf()
573 Jump(&findIndex); in LastIndexOf()
578 Bind(&findIndex); in LastIndexOf()
/arkcompiler/ets_runtime/test/moduletest/typearray/
H A Dtypearray.js383 // Test case for findIndex()
408 let result = obj.findIndex(testFindIndex);
/arkcompiler/ets_runtime/test/moduletest/elements_kind/
H A Delements_kind.js1458 // Array.findIndex
1462 let result = array1.findIndex(isLargeNumber);
2160 // Array.findIndex
/arkcompiler/ets_runtime/test/moduletest/elements_kind_generic/
H A Delements_kind_generic.js1455 let result = array1.findIndex(isLargeNumber);
/arkcompiler/ets_frontend/es2panda/test/compiler/js/
H A Dcocos_worker_test.js6100 const e = this.childNodes.findIndex((e => e === t));
9873 const i = t.findIndex(e);
26181 const l = this.findIndex(e, n);
26204 findIndex(t, e) {
[all...]

Completed in 46 milliseconds