Function isStr

  • Checks if passed value is a String type.

    Parameters

    • str: unknown

      The input to be checked.

    Returns boolean

    • Returns true if passed value is a String type, otherwise false.

    Example

    const result1 = isStr("hello"); // true
    const result2 = isStr(123); // false
    const result3 = isStr(true); // false

Generated using TypeDoc