Array search return true or false JS code example
Example: js find array return true false
['one', 'two'].some(item => item === 'one') // true
['one', 'two'].some(item => item === 'three') // false
['one', 'two'].some(item => item === 'one') // true
['one', 'two'].some(item => item === 'three') // false