return number in array instead true or false javascript 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