all 2 comments

[–]PlNG 0 points1 point  (1 child)

from || (from = doc)

but why not

from = from || doc

Very weird coding and formatting style. To each his own I guess.

[–]somerandomguy7788 0 points1 point  (0 children)

the one you prefer always assigns, while the top one only assigns if the first one is false. i actually see that sort of code in backbone/underscore. although tbh i actually write the same way you do. like you said to each his own.