• Checks if the provided value is a string.

    Example

    const result1 = isString('Hello, world!');  // true
    const result2 = isString(123); // false
    const result3 = isString('123'); // true
    const result4 = isString(null); // false

    Parameters

    • value: any

      The value to check.

    Returns value is string