Arrays of numbers are common, and filtering by a simple predicate is a great starting point. Here you'll use filter with a small helper to keep only even numbers. The result should be a new number[].
This problem reinforces reading from a number[], writing a boolean-returning predicate, and returning a new array without mutating the input.
isEven(n: number): boolean.keepEven(nums: number[]): number[] using isEven.keepEven([1, 2, 3, 4, 5]) → [2, 4]
keepEven([]) → []