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
885ce248a6
|
2 years ago | |
---|---|---|
.. | ||
README.md | 2 years ago |
README.md
Quantifiers
Instructions
Create these functions which receive an array and a function each. Each element will return true
if
every
: every element in the array respects the condition of the function.some
: that returnstrue
if at least one element in the array respects the condition of the function.none
: that returnstrue
if none of the elements in the array respects the condition of the function.
The use of [].every
and [].some
is forbidden for this exercise.
Code provided
The provided code will be added to your solution, and does not need to be submitted.
Array.prototype.some = Array.prototype.every = undefined