@mindfulness/utils
    Preparing search index...

    Function whenSQL

    • When something is defined, do something with it to return a SQL string.

      Type Parameters

      • T

      Parameters

      • t: Maybe<T>

        The thing to check

      • fn: Fn<T, string>

        What to do if the thing is defined

      Returns string

      • returns empty string if "thing" is not defined or whatever is returned from doWork