arrayFirst() throws an error if first item it undefined

The following cfml returns undefined when using ACF 2018 or 2021, but throws an error when using Lucee using (I was testing this to determine if it would return the first “defined” item in the array versus simply array[1].)

a = [];
arrayResize(a, 15);
writeoutput("len = #arrayLen(a)#<br>");

looks like a null edge case :slight_smile:

ok, I wasn’t sure if “atlassian” was the best place to post and I couldn’t find it after submitting so I thought it failed.