• Checks if a value is a String

    Example

    Returns true if the value is a String

    const result = isString("");
    console.log(result); // true

    Example

    Returns false if the value is not a String

    const result = isString(1);
    console.log(result); // false

    Returns

    true if value is a String, otherwise false

    Parameters

    • value: unknown

      the value to check

    Returns value is string

Generated using TypeDoc