includesAny
Checks if at least one element of values
is included in arr
.
- Use
Array.prototype.some()
andArray.prototype.includes()
to check if at least one element ofvalues
is included inarr
.
Checks if at least one element of values
is included in arr
.
Array.prototype.some()
and Array.prototype.includes()
to check if at least one element of values
is included in arr
.