🏠 New in High Baseline Support: Array includes()
March 20, 2019
caniuse · mdn · [spec]([‘https://tc39.es/ecma262/multipage/indexed-collections.html#sec-array.prototype.includes’, ‘https://tc39.es/ecma262/multipage/indexed-collections.html#sec-%25typedarray%25.prototype.includes’])
The includes()
method of arrays and typed arrays returns whether a given value appears in the array.