Map over a NonEmptyArray, preserving non-emptiness in the type. Supports data-first and curried (pipe-friendly) forms.
const names = pipe( of(user1, user2, user3), map((u) => u.name), ) Copy
const names = pipe( of(user1, user2, user3), map((u) => u.name), )
Map over a NonEmptyArray, preserving non-emptiness in the type. Supports data-first and curried (pipe-friendly) forms.