underscore.js の pick
みんな大好き underscore.jsで、今日はpickってのを見かけた。
http://underscorejs.org/#pick
pick_.pick(object, *keys) Return a copy of the object, filtered to only have values for the whitelisted keys (or array of valid keys). _.pick({name: 'moe', age: 50, userid: 'moe1'}, 'name', 'age'); => {name: 'moe', age: 50}
オブジェクトから対象のプロパティだけをpickして新しいオブジェ九tを返すようす