stevemcilwaine
6/5/2019 - 2:38 PM

Array .some()

Check if array entries include at least one match of criteria. entry is the array object indexed and criteriaToMeet can be whatever criteria needs to be met to be true.

const containsSome = array.some(entry => criteriaToMeet);