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
Currently, the suggestion we get for _.first might not be relevant in all cases. Array.prototype.slice() returns an array. But _.first from lodash returns a non-array value. So this line should be something like this I guess:
"alternative": "Array.prototype.slice() or arr[0]"
Also, I think we should add more aliases here. For example _.head should be prevented when _.first is prevented, because they're basically the same.
The text was updated successfully, but these errors were encountered:
Currently, the suggestion we get for
_.first
might not be relevant in all cases.Array.prototype.slice()
returns an array. But_.first
from lodash returns a non-array value. So this line should be something like this I guess:Also, I think we should add more aliases here. For example
_.head
should be prevented when_.first
is prevented, because they're basically the same.The text was updated successfully, but these errors were encountered: