remove letter if it is an array js code example
Example: 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);
}
function fromlist(l) {
return l.filter(e => Number.isInteger(e));
}
// or this
function fromlist(l) {
return l.filter(Number.isInteger);
}