-
Notifications
You must be signed in to change notification settings - Fork 810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more suggestions for _.first #312
Labels
Comments
Also Array.prototype.at() or const [firstElement] = arr; |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: