30 Days of Javascript 6 - Array Reduce Transformation
Given an integer array arr and a filtering function fn, return a filtered array filteredArr.
Given an integer array arr and a filtering function fn, return a filtered array filteredArr.
Given an integer array arr and a mapping function fn, return a new array with a transformation applied to each element.
Write a function createCounter. It should accept an initial integer init. It should return an object with three functions.
Write a function expect that helps developers test their code. It should take in any value val and return an object with the following two functions.
Given an integer n, return a counter function. This counter function initially returns n and then returns 1 more than the previous value every subsequent tim...