MCPcopy Create free account
hub / github.com/asweigart/PythonStdioGames / replaceAt

Function replaceAt

javascript_games/ninetyninebottles2.js:29–31  ·  view source on GitHub ↗
(str, index, replacement)

Source from the content-addressed store, hash-verified

27
28
29function replaceAt(str, index, replacement) {
30 return str.substr(0, index) + replacement + str.substr(index + replacement.length);
31}
32
33
34async function main() {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected