Is there a function which returns true or false when searching for an object in an array of objects?

The Array.prototype.some method:

The some() method checks if any of the elements in an array pass a
test (provided as a function). The some() method executes the function
once for each element present in the array: If it finds an array
element where the function returns a true value, some() returns true
(and does not check the remaining values)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)