Skip to content

Add Array.includes #90

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
michaelmesser opened this issue Apr 10, 2016 · 1 comment
Closed

Add Array.includes #90

michaelmesser opened this issue Apr 10, 2016 · 1 comment

Comments

@michaelmesser
Copy link

Add Array.prototype.includes

interface Array<T>{
    includes(value: T, index?: number): boolean
}
@mhegazy
Copy link
Contributor

mhegazy commented Apr 11, 2016

it is already available in https://github.com/Microsoft/TypeScript/blob/master/lib/lib.es2016.array.include.d.ts.

Use --lib es2016 to get the definition in your compilation. --lib is a new feature in TS 2.0, see microsoft/TypeScript#6974 for more information

@mhegazy mhegazy closed this as completed Apr 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants