Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 280 Bytes

.verb.md

File metadata and controls

15 lines (10 loc) · 280 Bytes

benchmarks

This is the fastest implementation I tested. Pull requests welcome!

Usage

var pick = require('{%= name %}');

pick({a: 'a', b: 'b'}, 'a')
//=> {a: 'a'}

pick({a: 'a', b: 'b', c: 'c'}, ['a', 'b'])
//=> {a: 'a', b: 'b'}