Iterates over every entry of the given struct and calls the closure with every key/value.

This function will reduce the struct to a single value and will return this value.

struct.reduce( closure=function, initialValue=object )

Returns: any

Argument Description
function, required

function/closure that implements the following constructor

[function(any result, string key, object value[, struct struct]):any].

Alias: function, callback, udf

object, optional

initial value passed as part of the first closure call

Alias: initial, initalValue


There are currently no examples for this function

See also