Calling Array.prototype methods like map, forEach, filter, and find without a callback throws a TypeError
The tests for challenges 8 and 10 call the prototype methods cMap and cFilter without callbacks (when testing with empty arrays)
When there are no callbacks, any solutions that faithfully replicate these prototype methods (throw TypeErrors for missing callbacks) will fail the tests
This commit adds callbacks to these method calls
Adding the callbacks will not affect solutions that do not throw TypeErrors for missing callbacks
Array.prototype
methods likemap
,forEach
,filter
, andfind
without a callback throws aTypeError
cMap
andcFilter
without callbacks (when testing with empty arrays)TypeError
s for missing callbacks) will fail the testsTypeError
s for missing callbacks