Created
September 19, 2020 06:48
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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