Yngvarr

Generation

generate functionFri, 13 Jan 2023

replace in string

function replaceInString(str, index, replacement) { return str.substr(0, index) + replacement+ str.substr(index + replacement.length); }

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant