how to add key in object based on condtion in js code example Example: js conditional object property const a = { ...(someCondition && {b: 5}) }