function setFromObject(object) {
  Object.keys(object).forEach((name) => {
    options[name] = object[name];
  });
}
function setFromObject(object) {
  Object.keys(object).forEach((name) => {
    options[name] = object[name];
  });
}
function setFromObject ( object ) { Object . keys ( object ) . forEach ( ( name ) => { options [ name ] = object [ name ] ; } ) ; }
Sets the options based on an object.
Sets the options based on an object .