-
-
Notifications
You must be signed in to change notification settings - Fork 2
v2.2.0 #1
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
v2.2.0 #1
Conversation
|
Why you need this feature? |
|
to format lodash.get var lodashGet = require('lodash.get');
var object = { 'a': [{ 'b': { 'c': 3 } }] };
lodashGet(object, 'a[0].b.c');
// => 3 |
2 similar comments
|
You can do the same things using jessy already: const obj = {
array: ['a','b', {c: 'e'}]
};
const keys = allObjectKeys(obj);
// returns
["array.0", "array.1", "array.2.c"]
jessy('array.2.c', obj);
// returns
"e" |
|
in another package used lodash, I need the functionality of your module with the ability to change the prefixes. So I decided to pull request, instead of doing a separate package. Do you think is better to make this functionality requirements, based on a new package? |
|
Yes, I think you better fork |
it is now possible to set prefixes and suffixes for indexes. Leads to the mind: