get the true value from array 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