Built-in Utility Functions
Utility functions are available that can be used within
reduce() functions where relevant.
[2012, 7, 30, 23, 58, 22]
The function can be particularly useful when building views using dates as the key where the use of a reduce function is being used for counting or rollup.
Currently, the function works only on UTC values. Timezones are not supported.
Converts a binary (base64) encoded value stored in the database into a string. This can be useful if you want to output or parse the contents of a document that has not been identified as a valid JSON value.
When supplied with an array containing numerical values, each value is summed and the resulting total is returned.