function setWidthHeight(el, w, h) {
  el.style.width = typeof w === 'number' ? `${w}px` : w;
  el.style.height = typeof h === 'number' ? `${h}px` : h;
}
Apply width and height CSS properties to element

@param {HTMLElement} el
@param {string | number} w
@param {string | number} h