String
util.string : object
String manipulation functions.
Kind: static namespace of util
- .string :
object- .split(input, separator, [limit]) ⇒
Array.<string> - .chunk(input, chunksize) ⇒
Array.<string>
- .split(input, separator, [limit]) ⇒
string.split(input, separator, [limit]) ⇒ Array.<string>
Split a string with a separator regex.
Kind: static method of string
| Param | Type | Description |
|---|---|---|
| input | string |
Input string |
| separator | string |
Passed to new RegExp(separator, 'g') |
| [limit] | number |
Maximum number of splits to perform |
string.chunk(input, chunksize) ⇒ Array.<string>
Split a string into chunks of length chunksize.
Kind: static method of string
| Param | Type | Description |
|---|---|---|
| input | string |
Input string |
| chunksize | string |
Number of characters per chunk |