We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Array.prototype[0] = 'boo'; _.first([]) // 'boo'
or
var arr = []; arr[-1] = 'boo' _.last(arr); // 'boo'
The text was updated successfully, but these errors were encountered:
check length in _.first and _.last, fix jashkenas#2495
507b858
Merge pull request #2513 from CodeFalling/check-length-in-first-last
ce591c8
check length in _.first and _.last, fix #2495
This had the unfortunately bad side effect of:
Before:
_([]).first(500); []
After:
_([]).first(500) undefined
Sorry, something went wrong.
No branches or pull requests
or
The text was updated successfully, but these errors were encountered: