@darthcav/ts-utils
    Preparing search index...

    Function asString

    • Returns the input when it is a string.

      Parameters

      • value: unknown

        Value to narrow.

      Returns string | undefined

      The same value as a string, or undefined when the value is not a string.