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
Enhancement: expose isIndex, isLength and complimentary toLength #1590
Comments
I want to hold off on exposing |
One example (isIndex) is when patching buggy defineProperty/defineProperties, I've also used it for a hasProperty method, where native |
Ah good point. I'll accept a PR for exposing
I want to keep |
Sounds reasonable. Now, the question is can I work git to have multiple branches for concurrent PRs. I've only worked with having a master and that is occupied with the toNumber PR. Or maybe I'll just wait a bit. :) |
You can create a branch as: cd lodash
git checkout master
git branch isLength
git checkout isLength
# do stuff
git push origin isLength
git checkout master
git branch reIsUnit
git checkout reIsUnit
# do stuff
git push origin reIsUnit
git checkout master |
I'll give it a try and hopefully not end up in too much of a mess. |
I'm assuming that you want isLength to remain as is and just be exposed (if I am understanding correctly), as my suggested change would cause a difference in results. As currently it must specifically be of type number rather than something that coerces to a valid number of isLength? |
Exposed methods get a bit more robust to handle more edge cases. To start out the PR could just expose them as is and I'll comment tweak once the PR is opened. |
Ok, I will give that a try and see how it goes with git. :) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Change
reIsUint
to pick up number string literals beginning with0
.Change
isLength
, add length argument, use other lodash methodsAdd
toLength
as it doesn't exist.These are all useful methods that I find myself using and lodash mostly has them internally.
The text was updated successfully, but these errors were encountered: