fromNullable<A> function

Option<A> fromNullable<A>(
  1. A? a
)

Implementation

Option<A> fromNullable<A>(A? a) => a == null ? None() : Some(a);