Returns true if the provided predicate function returns true for all elements in a set, otherwise it returns false.
all([4, 2, 3], x => x > 1)// true Copy
all([4, 2, 3], x => x > 1)// true
1.0.9
the target array
the judgment method
Returns true if the provided predicate function returns true for all elements in a set, otherwise it returns false.
Example
Since
1.0.9