ArrayPop
Remove last item in array and return it
Method Signature
Arguments
Argument
Type
Required
Description
Default
array
modifiablearray
true
The array to get the last
defaultValue
any
false
Examples
Remove the last value from an array
This is the full function version of arrayPop to remove the last value of an array.
Result: 42
Member function version
Result: 42
Additional Examples
Related
Last updated
Was this helpful?