I have a function which is defined as below
  function getProperties({
    url, listName, stage,
  }) {
    return {
      url,
      listName,
      currentStage: stage,
    };
  }
If I call this function as
getProperties({
  url: '<URL>',
  stage: '<stage>',
})
it should return
{
  url,
  currentStage: stage,
} 
So basically I want the function to return only those values which were actually passed as parameter to this function.
 
    