Every line of 'string splice' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
43 function spliceString(str, index, count, add) { 44 return str.slice(0, index) + (add || '') + str.slice(index + count); 45 }
20 export function splice__string(str, idx, rem, s) { 21 return (str.slice(0, idx) + (s || '') + str.slice(idx + Math.abs(rem))) 22 }
27 static splice(value: string, index: number, remove: number, toAdd: string): string { 28 return value.slice(0, index) + toAdd + value.slice(index + Math.abs(remove)); 29 }