O'Reilly logo
  • Edward Yasi thinks this is interesting:

 const​ defaults = {​  author: ​''​,​  title: ​''​,​  year: 2017,​  rating: ​null

From

Cover of Simplifying JavaScript

Note

Best way to add default values to object