Skip to content
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

collection not accessible #3

Closed
airtoxin opened this issue Jul 18, 2015 · 2 comments
Closed

collection not accessible #3

airtoxin opened this issue Jul 18, 2015 · 2 comments

Comments

@airtoxin
Copy link

cannot access property of object array.

var get = require('get-value');
get({a:['a','aa','aaa']}, 'a.2');
// => 'aaa'
get({c:[{},{b:1},{}]}, 'c.1');
// => { b: 1 }
get({c:[{},{b:1},{}]}, 'c.1.b');
// => undefined
@jonschlinkert
Copy link
Owner

hmm, it's a good idea. seems like more of a feature request than a bug though.

@jonschlinkert
Copy link
Owner

this works currently

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants