Function isString

Determines if a value is a string.

isString('abc'); // => true
isString(123); // => false
  • Parameters

    • x: unknown

      The value to check.

    Returns x is string

    A boolean indicating whether the value is a string or not.