@technobuddha/library
Version:
A large library of useful functions
11 lines (10 loc) • 385 B
TypeScript
/**
* Insert a substring into a string
*
* @param input - The string
* @param start - The position which to insert the substring
* @param deleteCount - The number of characters to delete
* @param items - The substring(s) to insert
* @returns The modified strings
*/
export declare function splice(input: string, start: number, deleteCount: number, ...items: string[]): string;