Closed curran closed 3 years ago
This should be a more efficient implementation, as it can be assumed that the implementation of includes returns early when the first match is found.
includes
Uses: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes
The downside is that this is not compatible with Internet Explorer. But I think that's OK.
This should be a more efficient implementation, as it can be assumed that the implementation of
includes
returns early when the first match is found.Uses: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes
The downside is that this is not compatible with Internet Explorer. But I think that's OK.