I'm wondering about performance. Meaning if includes or indexOf keep searching the array even though already found the element. MDN docs doesn't say if includes breaks the search once finds an element. developer.mozilla.org/en-US/docs/W...
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'm wondering about performance. Meaning if
includes
orindexOf
keep searching the array even though already found the element. MDN docs doesn't say ifincludes
breaks the search once finds an element.developer.mozilla.org/en-US/docs/W...