amark/coalesce — pull request #11 by pensivearchitect (2014-03-13 09:43:32+00:00)
Title: Correct equality

At two points in the code (lines 362 and 425), assignment is made on evaluation of the if condition. I do not think this intended behavior.

One strategy to avoid this is to write comparisons in reverse order (the [yoda condition](http://en.wikipedia.org/wiki/Yoda_conditions))
```js
if(true = myCondition){
initiateWorldDomination();
}
```
this will obviously throw an error instead of assigning.

I will rebase this commit if my previous PR is not accepted.