Skip to content

Latest commit

 

History

History

javaScriptArrayFilter

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

JavaScript Array Filter

7 kyu link to kata
my solution

JavaScript Arrays support a filter function (starting in JavaScript 1.6). Use the filter functionality to complete the function given.

The solution would work like the following:

getEvenNumbers([2,4,5,6]) // should == [2,4,6]