Function isString

  • Checks if a given value is of string type.

    Example

    isString('hello')
    // => true

    isString(10)
    // => false

    Type Parameters

    • T extends string

      The expected string literal type.

    Parameters

    • value: unknown

      The value to be checked.

    Returns value is T

    true if the given value is of string type, false otherwise.

Generated using TypeDoc v0.24.7