some: Check if some of the elements are similar in one aspect. It returns boolean

PHOTO EMBED

Fri Sep 16 2022 16:39:16 GMT+0000 (Coordinated Universal Time)

Saved by @sreejithbs

const names = ['Asabeneh', 'Mathias', 'Elias', 'Brook']
const bools = [true, true, true, true]

const areSomeTrue = bools.some((b) =>  b === true)

console.log(areSomeTrue) //true
content_copyCOPY

https://github.com/Asabeneh/30-Days-Of-JavaScript/blob/master/09_Day_Higher_order_functions/09_day_higher_order_functions.md