typefinity
    Preparing search index...

    Function isString

    • Check if the given value is a string

      Parameters

      • value: number | bigint | boolean | symbol | object | Function

        The value to check

      Returns value is never

      True if the value is a string

    • Check if the given value is a string

      Type Parameters

      • T extends string

      Parameters

      • value: number | bigint | boolean | symbol | object | Function | T

        The value to check

      Returns value is string extends T ? string : T

      True if the value is a string

    • Check if the given value is a string

      Parameters

      • value: unknown

        The value to check

      Returns value is string

      True if the value is a string