'use strict';

function setStyle(style, options = {}) {
  const { element = document.body } = options;
  const oldStyle = {};
  const styleKeys = Object.keys(style);
  styleKeys.forEach((key) => {
    oldStyle[key] = element.style[key];
  });
  styleKeys.forEach((key) => {
    element.style[key] = style[key];
  });
  return oldStyle;
}

exports.setStyle = setStyle;
//# sourceMappingURL=setStyle.cjs.map
