Let's say I have 

```
const {status} = req.body;

```

I want to include **status** in my query object only if the status has truthy value(other than `null` or `undefined` or **empty string**),

Currently I'm doing this,

```
const query = {
   otherCondition: 1,
};

if (status) {
  query.status = status;
}

```

Is there any way to avoid this using if clause using ES6 Object shorthand ?

If I use,

```
const query = {
   otherCondition: 1,
   status,
}

```

When the status is `undefined`, it generates

```
{
   otherCondition: 1,
   status: "undefined",
}

```