Alias to split function.
Install
Install all functions of strman
yarn add strmanor just the split function
yarn add strman.splitUsage
import { split } from 'strman'
// OR
import split from 'strman.split'Parameters:
| Name | Type | Description |
|---|---|---|
value |
String | The String! |
separator |
String | Split separator. |
limit |
Number | Split limit. |
Returns:
The String splited!
- Type
- String
Example
split('strman', '')
// => ['s', 't', 'r', 'm', 'a', 'n']