replace char in all string in array js code example
Example 1: js replace characters in a string
var str = "Original string!";
var str = str.replace("Original", "New");
Example 2: how to remove letters from an array javascript
function fromlist(l) {
return l.filter(e => Number.isInteger(e));
}
// or this
function fromlist(l) {
return l.filter(Number.isInteger);
}