mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
davhojt
bb81c93c2b
|
2 years ago | |
---|---|---|
.. | ||
README.md | 2 years ago |
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