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

Document property order issue with pluck #703

Closed
CrossEye opened this issue Sep 7, 2014 · 2 comments
Closed

Document property order issue with pluck #703

CrossEye opened this issue Sep 7, 2014 · 2 comments

Comments

@CrossEye
Copy link

CrossEye commented Sep 7, 2014

This is similar to #671, I think. It probably is not an issue that can be fixed, but should probably be documented with some caveat about property order access not being guaranteed in pluck.

var flintstonesA = {
    A: {name: 'fred', age: 40},
    B: {name: 'wilma', age: 36},
    C: {name: 'pebbles', age: 2}
};
var flintstonesB = {
    B: {name: 'wilma', age: 36},
    A: {name: 'fred', age: 40},
    C: {name: 'pebbles', age: 2}
};
_.pluck(flintstonesA, 'age'); //=> [40, 36, 2]
_.pluck(flintstonesB, 'age'); //=> [36, 40, 2]
@EtaiG
Copy link

EtaiG commented Sep 8, 2014

Isn't this obvious, since that's really how iteration over object properties works in the browser?

@lock
Copy link

lock bot commented Jan 20, 2019

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.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants