Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
}
Source by www.codewars.com #
 
PREVIOUS NEXT
Tagged: #remove #letters #array #javascript
ADD COMMENT
Topic
Name
9+5 =