StructReduce
Run the provided udf against struct to reduce the values to a single output
Method Signature
Arguments
Argument
Type
Required
Description
Default
struct
struct
true
The struct to reduce
callback
function
true
The function to invoke for each entry in the struct. The function will be passed 4 arguments: the accumulator, they entry key, the current index, and the original struct. The function should return the new accumulator value.
initialValue
any
false
The initial value of the accumulator
Examples
Related
Last updated