Returns an array consisting of the characters in the string.
Install
Install all functions of strman
yarn add strmanor just the chars function
yarn add strman.charsUsage
import { chars } from 'strman'
// OR
import chars from 'strman.chars'Parameters:
| Name | Type | Description |
|---|---|---|
value |
String | The input string |
Returns:
The array with the single characters of value
- Type
- Array.<String>
Example
chars('abc')
// => ['a', 'b', 'c']