@tempots/std
trimStringSlice() function
Removes a slice from index
to index + length
from value
.
Signature:
trimStringSlice: (value: string, index: number, length: number) => string
Parameters
Parameter |
Type |
Description |
---|---|---|
value |
string |
The string to remove the slice from. |
index |
number |
The starting index of the slice to remove. |
length |
number |
The length of the slice to remove. |
Returns: string
The string with the slice removed.