UNPKG

array-includes

Version:

An ES7/ES2016 spec-compliant `Array.prototype.includes` shim/polyfill/replacement that works as far down as ES3.

4 lines (2 loc) • 124 B
declare function includes<T>(array: ArrayLike<T>, searchElement: unknown, fromIndex?: number): boolean; export = includes;