bmel:modeOf¶
Category: Array & Statistics · Returns: bmel:any
bmel:modeOf(array: bmel:array)
Description¶
Returns the most frequently occurring value in an array. Works on numeric, string, and boolean arrays. When multiple values tie, returns the one that appears first in sorted order. Returns null for an empty array.
Arguments¶
| Parameter | Type | Required | Description |
|---|---|---|---|
array | bmel:array | ✅ | The array of values to find the mode of. |
Example¶
bmel:modeOf({batch:Response Payload}.$.status_codes)