Documentation
    Preparing search index...

    Function toOptional

    • Convert a nilable into an optional argument. This means null is normalized to undefined.

      Type Parameters

      • T

      Parameters

      • nilable: Maybe<T>

        The subject to convert to an optional.

      Returns undefined | T

      The value, normalized to undefined, if it was nil.