Return an element using `array.some()` instead of boolean
Array.prototype.some()
only checks if any element in the array passes test defined in callback function. You should use array find
method which returns first element passig test
Array.prototype.some()
only checks if any element in the array passes test defined in callback function. You should use array find
method which returns first element passig test