(value: string, start: number, delCount: number, newSubStr: string)
| 284 | * @return {string} A new string with the spliced substring.function splice(value: string, start: number, delCount: number, newSubStr: string) { |
| 285 | */ |
| 286 | function splice(value: string, start: number, delCount: number, newSubStr: string) { |
| 287 | return value.slice(0, start) + newSubStr + value.slice(start + Math.abs(delCount)); |
| 288 | } |
no test coverage detected