DEV Community

Discussion on: Pick the best parts of an object

Collapse
 
tomekbuszewski profile image
Tomek Buszewski

Hey, just a tip: use meaningful variables names. Nobody knows what o, p etc. means. It really increases readability and understanding :-)

Also, deconstructing is one of my favorite things in JavaScript right now.

Collapse
 
bernardbaker profile image
Bernard Baker

@tomekbuszewski thanks for the tip. I've renamed the variables to be more meaningful.

Collapse
 
tomekbuszewski profile image
Tomek Buszewski

Super, it makes it really clear now ;)