Skip to content

Property 'includes' does not exist on type string[] #11890

Closed
@codeepic

Description

@codeepic

Hi,

I am trying to use
Array.prototype.includes includes function explained on MDN network but I am getting the following error:

Property 'includes' does not exist on type 'string[]'.

includes is part of EcmaScript 6.

I am using Typescript version 2.0.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions