js conditional keys code example Example: js conditional key const object = { ...bool && { foo: 2 }, }