-
Notifications
You must be signed in to change notifi 8000 cation settings - Fork 7.1k
Add string built-ins to lodash wrapper? #1016
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
Comments
I can dig a couple helpers. Let's open it to PRs :D |
If these are back on the table it may be a good time to reconsider method proxies #821? |
Still not wanting method proxies. Chaining is pretty scenario specific. |
I guess I can help :-) |
Rock, let's reuse the loop that's handling the array methods, adding just |
👍 |
Taking it to #1016. |
WIP: StringWrapper implementation for #1016.
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. |
It's super handy that a bunch of the built-in
Array
methods (concat
,join
,pop
,push
, etc) are all added to the wrapper object. Thus when an array is wrapped, one can use any of the built-in array methods directly on the chain as if operating directly on the array.Now that lodash has a suite of String methods, I was a bit surprised to learn that the
String
built-ins aren't added to the wrapper object as well.Was this intentional or an oversight? I would love to be able to use methods like
split
orreplace
directly on a lodash-wrapped string.The text was updated successfully, but these errors were encountered: