mirror of https://github.com/01-edu/public.git
bb81c93c2b | ||
---|---|---|
.. | ||
README.md |
README.md
Filter
Instructions
Create the following functions, which each take an array as the first argument, and a function as the second argument.
-
filter
: that works like the[].filter
method. -
reject
: that works like thereject
function from lodash. -
partition
: that works like thepartition
function from lodash.
Code provided
The provided code will be added to your solution, and does not need to be submitted.
Array.prototype.filter = undefined