🏠 New in Low Baseline Support: Array includes()
September 20, 2016
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.