69277694

Date: 2021-09-22 04:12:53
Score: 4.5
Natty:
Report link

Is it possible to add the string as a parameter in an ES6 function?

const replaceAt = (index, replacement, string) => {
    return string[:index] + replacement + string[index+1:]
}
Reasons:
  • Blacklisted phrase (1): Is it possible to
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Is it
  • Low reputation (1):
Posted by: OutToBrunch