In javascript, having an object as argument over multiple (5+) argument is generally preferred,
- it is easier to have optional parameter
- you don't risk to mess up the order of the argument (typing help in case argument are of different type but do not help when multiple arg are of the same time
- it make it easier to read the function call since you do not need to go back and forth to the function signature to know witch arg mean what