Discolink
    Preparing search index...

    Function isString

    • Check if input is a string

      Type Parameters

      • T extends string

      Parameters

      • input: unknown

        value

      • Optionalcheck: RegExp | "url" | "non-empty"

        RegExp, url (URL.canParse), non-empty (at least one non-whitespace character)

      Returns input is T

      true if the input passed, false otherwise