The Object.assign() Method in JavaScript - Set default options for functions