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

 function​ displayPhoto(photo) {​ const​ {​  title,​  photographer = ​'Anonymous'​,​  location: [latit...

From

Cover of Simplifying JavaScript

Note

Quick example of handling any extra parameters you don't know the key names for