Skip to content

Instantly share code, notes, and snippets.

@hassan-maavan
Created September 19, 2020 06:48
Show Gist options
  • Save hassan-maavan/4abb2bb143aca96780641d76909c36a4 to your computer and use it in GitHub Desktop.
Save hassan-maavan/4abb2bb143aca96780641d76909c36a4 to your computer and use it in GitHub Desktop.
In this kata you will create a function that takes a list of non-negative integers and strings and returns a new list with the strings filtered out. https://www.codewars.com/kata/53dbd5315a3c69eed20002dd
function filter_list(l) {
return l.filter(a=>Number.isInteger(a));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment