I am writing one Node.js component in that there is one API which will get query value from request. sometimes that query values will be empty such as `""` so i need to write one condition for that.

for example,

query will contain the values like this 

```
 {
    name:"",
    start:"yyyy"
 }

```

so I need to write one condition to check whether name is empty or not .

i have written some thing like that 

`if(name){}`

`if(name===""){}`

but it does not work then i have checked the string length it is giving 2 .

so how to write condition ?