Skip to main content

map

Transform each element of an array. Returns a new array with the transformed values.


Examples

List all package names:

packages.map(name)