Skip to content

modify

modify<S, A>(opt): (f) => (s) => S

Defined in: Core/Optional.ts:123

Applies a function to the focused value if it is present; returns the structure unchanged if the focus is absent.

S

A

Optional<S, A>

(f): (s) => S

(a) => A

(s): S

S

S

pipe(profile, Optional.modify(bioOpt)(s => s.toUpperCase()));