Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 140817

for of, False positive eslint(no-unused-vars)

$
0
0

My code:

  for (const i of [1, 2, 3]) {
    console.log(i)
  }

eslint message: 'i' is defined but never used.eslint(no-unused-vars)

enter image description here


Viewing all articles
Browse latest Browse all 140817

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>