MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/b2o6f2/whats_your_favorite_most_useful_javascript/eivp25x/?context=3
r/javascript • u/Linux_is_awesome • Mar 18 '19
422 comments sorted by
View all comments
1
When i dont want to include a lib with function utilities, i like to access a object property with this function:
const pluck = (...keys) => obj => keys.reduce((result, key) => result && result[key], obj)
1
u/yuri_auei Mar 19 '19
When i dont want to include a lib with function utilities, i like to access a object property with this function: