Skip to main content

first

Return the first element of an array.


Examples

Get the first package installed on the system:

packages.map(name).first