isString es-toolkit
Checks if a given value is a string.
Usage
isString(value)
Use isString when you want to check if a value is a string. It's useful for distinguishing string types from other primitive types or objects.
Useful for data validation and type-safe string processing:
Parameters
valueunknownrequired
The value to check if it's a string.
Returns
Returns true if the value is a string, false otherwise.
Source: es-toolkit
Re-exported verbatim from es-toolkit. Implementation, edge cases, and performance behavior are owned upstream. This page mirrors the documentation at the pinned version; the linked source is authoritative.