You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure I'd like to see this do into to Quiver. It basically save 6 characters, but throws out all static checking along the way. It makes sense in JavaScript because there's no short lambda syntax and no static checking anyway.
The main use case is when there is a dynamic property name, I was just too
lazy to come up with an example :). But I agree it may be too specialized
for quiver. Thanks for the feedback!
I'm not sure I'd like to see this do into to Quiver. It basically save 6
characters, but throws out all static checking along the way. It makes
sense in JavaScript because there's no short lambda syntax and no static
checking anyway.
Without pluck you can extract a property with:
[{'a': 1}, 'xx', [1, 2, 3]].map((e) => e.length);
Which I also think is clearer.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/64#issuecomment-29221328
.
See http://underscorejs.org/#pluck
This doesn't fit in the core libraries, see http://dartbug.com/15278, since it requires mirrors.
Example implementation:
Usage:
Output:
The text was updated successfully, but these errors were encountered: