javascript filter some 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