You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm in a situation where I'm trying to make an array of random x y coordinates but the underscore in the map function is being flagged as an unused var. I'm not sure if there is a better way to write this or if I should simply do an inline ignore in this case.
In short: how do I avoid the no-unused-vars error when I don't need the currentValue required by the Array.map() method?
I'm in a situation where I'm trying to make an array of random x y coordinates but the underscore in the map function is being flagged as an unused var. I'm not sure if there is a better way to write this or if I should simply do an inline ignore in this case.
In short: how do I avoid the
no-unused-vars
error when I don't need thecurrentValue
required by theArray.map()
method?The text was updated successfully, but these errors were encountered: