Not really sure, since JS does not offer default parameter values by default, I usually go this way, but it's just a question of consistency in the whole codebase actually (which I admit didn't check).