Checks whether a string.
Install
Install all functions of strman
yarn add strman
or just the isString function
yarn add strman.isstring
Usage
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