Apply fn to the value inside a Some; leave None unchanged. Supports data-first and curried (pipe-friendly) forms.
fn
const upper = pipe( fromNullable(user.name), map((n) => n.toUpperCase()), ) Copy
const upper = pipe( fromNullable(user.name), map((n) => n.toUpperCase()), )
Apply
fnto the value inside a Some; leave None unchanged. Supports data-first and curried (pipe-friendly) forms.