Collection of convenience code snippets (helpers) that aims to make it a little easier to work with vanilla JS
vanillajs-helpers > “isString”
► isString(obj: any): boolean
Defined in isString.ts:16
Is the given object of type String
isString('string'); // -> true
isString(123); // -> false
Parameters:
| Param | Type | Description |
|---|---|---|
| obj | any |
Object to test |
Returns: boolean