The includes() method of arrays and typed arrays returns whether a given value appears in the array.
includes()