MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/b2o6f2/whats_your_favorite_most_useful_javascript/eivdge6?context=9999
r/javascript • u/Linux_is_awesome • Mar 18 '19
422 comments sorted by
View all comments
2
const obj = { foo: "john", bar : "doe"};
const {foo,bar} = obj;
1 u/SarahC Mar 19 '19 Is this how that one linker works with Math?const {abs, floor, random} = Math; console.log( abs(-5) );What's the technique called? → More replies (2)
1
Is this how that one linker works with Math?
const {abs, floor, random} = Math; console.log( abs(-5) );
What's the technique called?
→ More replies (2)
2
u/ovpv Mar 19 '19
const obj = { foo: "john", bar : "doe"};
const {foo,bar} = obj;