Checks whether a string.
Install
Install all functions of strman
yarn add strmanor just the isString function
yarn add strman.isstringUsage
import { isString } from 'strman'
// OR
import isString from 'strman.isstring'Parameters:
| Name | Type | Description |
|---|---|---|
value |
String | The String! |
- Source:
Returns:
if 'value' isString, return true, else false.
- Type
- Boolean
Example
const title = 'A Javascript string manipulation library.'
isString(title)
// => true