Returns an array consisting of the characters in the string.
Install
Install all functions of strman
yarn add strman
or just the chars function
yarn add strman.chars
Usage
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']