how to do conditionals inside an object js code example Example: js conditional object const object = { ...bool && { foo: 2 }, }