how to conditionally keep a key in an object in js code example Example: js conditional object key const object = { ...bool && { foo: 2 }, }