Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Pick for selecting part of object attributes #38
I've been using Stapes as a view model layer for Rivets.js, and Backbone as persistence layer.
In the view model layer I have both data that is going to be persisted (form data) and transient view attributes (such as whether todo entry is editable or not).
I've been missing a function similar to .pick in Underscore and Backbone to select only persistable attributes.
If you care to include this to Stapes, you'll find tests, documentation and implementation with this pull request.