3 ms·
underscore.js does this with a pick function _.pick( {a:1,b:2}, "a" ); underscore is cool.
by tonetheman 12y ago
underscore.js does this with a pick function
_.pick( {a:1,b:2}, "a" );
underscore is cool.
- vkjv 12y agoIf you think underscore is cool, you'll go bananas over lodash.
- mjs7231 12y agoYet another single letter namespaced project to collide with other single letter namespace projects.
- mattwad 12y agolodash is a replacement for underscore, so it's definitely not as bad as all those '$' libraries. Just make sure lodash gets loaded after underscore, since it's a superset (and faster)
- tonetheman 12y agothanks for the suggestion i shall look it up!