how to remove letters from an array javascript

JavaScript
function fromlist(l) {
  return l.filter(e => Number.isInteger(e));
}
// or this
function fromlist(l) {
  return l.filter(Number.isInteger);
}
Source

Also in JavaScript: