Since the merge.recursive call inside the Seller class does not have the clone option, it will not clone the input object, therefore every call of the Seller constructor will overwrite the defaultOptions with the user's options.
This also means that seller details can mix (e.g., bank account of a seller can appear on another invoice).
Since the
merge.recursive
call inside theSeller
class does not have theclone
option, it will not clone the input object, therefore every call of theSeller
constructor will overwrite thedefaultOptions
with the user's options.This also means that seller details can mix (e.g., bank account of a seller can appear on another invoice).