Nieuws

Function #4: Reject We can now reuse the isPrime () function in conjunction with reject to get all the non-prime numbers in the array. The reject function does the opposite of the filter function. It ...
In the previous lesson, we have learnt some useful Higher Order Functions to manipulate arrays & objects. Now, let's put them to use in this lab. The splice() method adds/removes items to/from an ...