Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tonetheman
on May 6, 2014
|
parent
|
context
|
favorite
| on:
Fat JSON
underscore.js does this with a pick function
_.pick( {a:1,b:2}, "a" );
underscore is cool.
vkjv
on May 6, 2014
[–]
If you think underscore is cool, you'll go bananas over lodash.
mjs7231
on May 6, 2014
|
parent
|
next
[–]
Yet another single letter namespaced project to collide with other single letter namespace projects.
mattwad
on May 6, 2014
|
root
|
parent
|
next
[–]
lodash 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
on May 6, 2014
|
parent
|
prev
[–]
thanks for the suggestion i shall look it up!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
_.pick( {a:1,b:2}, "a" );
underscore is cool.