Document Title
Is this a code smell?
let variable = {string || false || number}
When I see code like this, I know the next line is going to be an if statement ( yuk )
What we have here is a bit of code this is going to create something, and if you are going to create something then it’s far better if you give it a function with a name. Here is an example :