ArrayReduceRight
Method Signature
ArrayReduceRight(array=[array], callback=[function:BiFunction], initialValue=[any])Arguments
Argument
Type
Required
Description
Default
Examples
Simple arrayReduceRight Example
myArray = [
"a",
"b",
"c",
"d"
];
newArray = arrayReduceRight( myArray, ( Any prev, Any next, Any idx, Any arr ) => {
return prev & next & idx;
}, "" );
writedump( newArray );
Related
Last updated
Was this helpful?
