conditinalmente agregar objeto js

...(someCondition && {
 	key: value,
})
Fancy Finch