Array map member function skips null values

Description

Scenario: call map() on an array that contains null values.

What I expected:
1) The new array should have the same length as the original array.
2) Each item in the new array should have the value returned from the map function.

What actually happened:
1) If the original array has nothing but null values, the new array has a length of 0.
2) If the original array contains a mix of null and non-null values, it is impossible to map the null values to a different value.

TryCF gist: https://trycf.com/gist/f586d22f312910ec1814b235522f97fe/lucee5?theme=monokai

Environment

None

Assignee

Michael Offner

Reporter

Ryan Deba

Priority

Major

Labels

Fix versions

None

Affects versions

Configure