Home
last modified time | relevance | path

Searched refs:arrayLike (Results 1 – 10 of 10) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/ts_types/
Dlib_ark_builtins.d.ts559 static from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
756 static from(arrayLike: ArrayLike<number>): Uint8ClampedArray;
758 …static from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8C…
760 …static from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any):…
844 static from(arrayLike: ArrayLike<number>): Uint8Array;
846 …static from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8A…
848 …static from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any):…
932 static from(arrayLike: ArrayLike<number>): Int8Array;
934 …static from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Ar…
936 …static from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any):…
[all …]
/arkcompiler/ets_runtime/test/moduletest/arraySliceCase/
DarraySliceCase.js44 const arrayLike = { variable
50 print(Array.prototype.slice.call(arrayLike, 1, 3));
/arkcompiler/ets_runtime/test/moduletest/arrayValuesCase/
DarrayValuesCase.js30 const arrayLike = { variable
36 for (const entry of Array.prototype.values.call(arrayLike)) {
/arkcompiler/ets_runtime/test/moduletest/arrayFindIndexCase/
DfindIndex.js27 const arrayLike = { variable
33 print(Array.prototype.findIndex.call(arrayLike, (x) => !Number.isInteger(x)));
/arkcompiler/ets_runtime/test/moduletest/arrayfind/
Darrayfind.js21 const arrayLike = { variable
27 console.log(Array.prototype.find.call(arrayLike, (x) => !Number.isInteger(x)));
/arkcompiler/ets_runtime/test/moduletest/arrayreducecase/
Darrayreducecase.js31 const arrayLike = { variable
37 print(Array.prototype.reduce.call(arrayLike, (x, y) => x + y));
/arkcompiler/ets_runtime/test/moduletest/arrayFilterCase/
DarrayFilterCase.js44 const arrayLike = { variable
50 print(Array.prototype.filter.call(arrayLike, (x) => x <= "b"));
/arkcompiler/ets_runtime/test/moduletest/elements_kind/
Delements_kind.js1421 const arrayLike = { variable
1428 let result = Array.prototype.filter.call(arrayLike, (x) => x <= "b");
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_typedarray.cpp270 JSHandle<JSTaggedValue> arrayLike(arrayLikeObj); in From() local
273 …JSHandle<JSTaggedValue> lenResult = JSTaggedValue::GetProperty(thread, arrayLike, lengthKey).GetVa… in From()
301 kValue.Update(ObjectFastOperator::FastGetPropertyByValue(thread, arrayLike.GetTaggedValue(), in From()
Dbuiltins_array.cpp273 JSHandle<JSTaggedValue> arrayLike(arrayLikeObj); in From() local
275 int64_t len = ArrayHelper::GetArrayLength(thread, arrayLike); in From()
311 JSHandle<JSTaggedValue> kValue = JSArray::FastGetPropertyByValue(thread, arrayLike, k); in From()