/** * My cool function. * * @param {Object} obj - An object. * @param {string} obj.prop1 - Property 1. * @param {string} obj.prop2 - Property 2. */ const fn = function ({prop1, prop2}) { // Do something with prop1 and prop2 }