Array Utilities

7 functions for array operations and transformations

first()

Get first element of an array or null

last()

Get last element of an array or null

at(index)

Safe index access (supports negative indices)

length()

Get length of string, array, or object keys

uniq()

Deduplicate array (shallow comparison)

compact()

Remove null, undefined, and empty string elements from array

sort()

Ascending lexicographic/number sort (non-mutating)