@mindfulness/utils
    Preparing search index...

    Function unless

    • When something is undefined (or null), do something. - Opposite of when

      Type Parameters

      • T
      • R

      Parameters

      • thing: Nullable<T>

        The thing to check

      • doWork: () => R

        What to do if the thing is undefined

      Returns Maybe<R>

      • returns undefined if "thing" is defined or whatever is returned from doWork