"description":"Removes the last element from an array and returns the removed element. This will cause an exception on an empty array.",
"params": [
{"name":"array","description":"The array whose last element is removed.","required":true,"default":"","type":"array","values":[]}
],
"engines": {
"coldfusion": {"minimum_version":"2021", "notes":"The full function was added in ACF 2021, but the member function appears to work in ACF 2018 (likely using Java).", "docs":"https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-a-b/arraypop.html"},
"lucee": {"minimum_version":"5.3.8", "notes":"Lucee allows a second, optional argument `defaultValue` of `any` type that allows you to enter a default value to return if the array is empty.", "docs":"https://docs.lucee.org/reference/functions/arraypop.html"},
"boxlang": {"minimum_version":"1.0.0", "notes":"BoxLang allows a second, optional argument `defaultValue` of `any` type that allows you to enter a default value to return if the array is empty.", "docs":"https://boxlang.ortusbooks.com/boxlang-language/reference/built-in-functions/array/arraypop"}
},
"links": [
{
"title":"ArrayPop(), ArrayShift(), And ArraySliceSafe() In Lucee CFML 5.3.6.61",
"description":"Blog post from Ben Nadel detailing new Array functions in Lucee.",