remove specific character from array element javascript code example
Example 1: javascript remove specific character from string
var newString = oldString.replaceAll("character/string goes here", "");
// Example
var oldString = "Hello World!";
var newString = oldString.replaceAll("o", "");
console.log(newString);
// Prints 'Hell Wrld!' to console.
Example 2: remove a specific element from an array
array.splice(array.indexOf(item), 1);