title: Property 'includes' does not exist on type 'number[]' in typescript file
body: <p>I have installed tsc globally and running tsc index.ts.</p>
  <p>Following is my tsconfig.json file in my root project folder.</p>
  <pre><code> {
        &quot;compilerOptions&quot;: {
          &quot;target&quot;: &quot;esnext&quot;,
          &quot;lib&quot;: [&quot;dom&quot;, &quot;es2017&quot;],
          &quot;allowJs&quot;: true,
          &quot;esModuleInterop&quot;: true,
          &quot;allowSyntheticDefaultImports&quot;: true,
          &quot;forceConsistentCasingInFileNames&quot;: true,
          &quot;module&quot;: &quot;es6&quot;,
          &quot;outDir&quot;: &quot;./build&quot;,
          &quot;moduleResolution&quot;: &quot;node&quot;,
          &quot;resolveJsonModule&quot;: true,
          &quot;skipLibCheck&quot;: true
      },
      &quot;exclude&quot;: [&quot;node_modules&quot;, &quot;build&quot;]
      
      }
  </code></pre>
  <p>I am getting the following error when I try to validate whether a number is included in an array.</p>
  <p>Property 'includes' does not exist on type 'number[]'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2016' or later.</p>
  <p>index.ts:-</p>
  <pre><code>const max = 15
  const min = 10
  let arrayOfRandomNumbers: number[] = []
  
  const getTicket = (): void =&gt; {
    let randomNumber = null
    if (arrayOfRandomNumbers.length === max - min + 1) {
      document.querySelector('button').disabled = true
    } else {
      while (arrayOfRandomNumbers.length &lt; max - min + 1) {
       
        randomNumber = Math.floor(Math.random() * (max - min + 1)) + min
        if (!arrayOfRandomNumbers.includes(randomNumber)) {
          arrayOfRandomNumbers = [...arrayOfRandomNumbers, randomNumber]
          console.log('arrayOfRandomNumbers for:-', arrayOfRandomNumbers)
          break
        }
      }
  
    }
  
  }
  
  getTicket()
  </code></pre>