hasMany
Checks if an array has more than one value matching the given function.
- Use 
Array.prototype.filter()in combination withfnto find all matching array elements. - Use 
Array.prototype.lengthto check if more than one element matchfn. 
Checks if an array has more than one value matching the given function.
Array.prototype.filter() in combination with fn to find all matching array elements.Array.prototype.length to check if more than one element match fn.