mirror of https://github.com/01-edu/public.git
885ce248a6 | ||
---|---|---|
.. | ||
README.md |
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