StructReduce

Run the provided udf against struct to reduce the values to a single output

Method Signature

StructReduce(struct=[structloose], callback=[function], initialValue=[any])

Arguments

ArgumentTypeRequiredDescriptionDefault

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

Last updated

Logo

Copyright & Register Trademark by Ortus Solutions, Corp & Ortus Software, LLC