Lucee object methods reference
Object Method Array.pop
pops the last element from an array. In case the array is empty an exception is thrown,
unless the second argument "defaultValue" is provided, in that case that value is returned.
Array.pop([any defaultValue]):any
Category
array
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Description |
---|---|---|---|
defaultValue | any | No | this value is returned in case the array is empty |