Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 386 Bytes

File metadata and controls

13 lines (10 loc) · 386 Bytes

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]