| 4 | |
| 5 | declare global { |
| 6 | interface String { |
| 7 | /** |
| 8 | * Split a string into substrings using the specified separator and return them as an array. |
| 9 | * @param splitter An object that can split a string. |
| 10 | * @param limit A value used to limit the number of elements returned in the array. |
| 11 | */ |
| 12 | split(splitter: { [Symbol.split](string: string, limit?: number): string[] }, limit?: number): [string, ...string[]] |
| 13 | |
| 14 | /** |
| 15 | * Split a string into substrings using the specified separator and return them as an array. |
| 16 | * @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned. |
| 17 | * @param limit A value used to limit the number of elements returned in the array. |
| 18 | */ |
| 19 | split(separator: string | RegExp, limit?: number): [string, ...string[]] |
| 20 | } |
| 21 | |
| 22 | // JSON.parse / Body.json overrides live in ./builtin-json.d.ts (referenced |
| 23 | // above) so a source-linked consumer can disable them in linked mode. |
no outgoing calls
no test coverage detected
searching dependent graphs…