Skip to content

head

head(array) → element or null · Array

Alias for first(). Returns the first element of an array, or null if empty.

  • array (required): the source array
utlx
head(["Apple", "Banana", "Cherry"])      // "Apple"
head([])                                 // null

Released under AGPL-3.0.