ArrayLikeAbstractOperations
object ArrayLikeAbstractOperations
The array methods that also work on typed arrays and other array-likes: iteration, reduce, sort.
Types
Link copied to clipboard
Sorts holes last, undefined just before them, and everything else by child.
Link copied to clipboard
Which of the array methods that walk every element is running.
Link copied to clipboard
Reads the length of an array-like, which differs between arrays and typed arrays.
Link copied to clipboard
Which direction reduce walks in.
Link copied to clipboard
The default sort order: compare the elements as strings.
Functions
Link copied to clipboard
fun coercibleIterativeMethod(cx: Context, operation: ArrayLikeAbstractOperations.IterativeOperation, scope: Scriptable, o: Scriptable, args: Array<Any?>, length: Long): Any?
Link copied to clipboard
Link copied to clipboard
fun getSortComparatorFromArguments(cx: Context, scope: Scriptable, args: Array<Any?>): ArrayLikeAbstractOperations.ElementComparator
Link copied to clipboard
fun iterativeMethod(cx: Context, operation: ArrayLikeAbstractOperations.IterativeOperation, scope: Scriptable, thisObj: Scriptable?, args: Array<Any?>, lengthAccessor: ArrayLikeAbstractOperations.LengthAccessor): Any?
fun iterativeMethod(cx: Context, fn: IdFunctionObject?, operation: ArrayLikeAbstractOperations.IterativeOperation, scope: Scriptable, thisObj: Scriptable?, args: Array<Any?>, lengthAccessor: ArrayLikeAbstractOperations.LengthAccessor): Any?
fun iterativeMethod(cx: Context, tag: Any?, name: String, operation: ArrayLikeAbstractOperations.IterativeOperation, scope: Scriptable, thisObj: Scriptable?, args: Array<Any?>, lengthAccessor: ArrayLikeAbstractOperations.LengthAccessor): Any?
Link copied to clipboard
fun reduceMethod(cx: Context, operation: ArrayLikeAbstractOperations.ReduceOperation, scope: Scriptable, thisObj: Scriptable?, args: Array<Any?>): Any?
Link copied to clipboard
fun reduceMethodWithLength(cx: Context, operation: ArrayLikeAbstractOperations.ReduceOperation, scope: Scriptable, o: Scriptable, args: Array<Any?>, length: Long): Any?
Link copied to clipboard