function setAttributes(element, attributes) {
	  if (!is$1.element(element) || is$1.empty(attributes)) {
	    return;
	  } // Assume null and undefined attributes should be left out,
	  // Setting them would otherwise convert them to "null" and "undefined"


	  Object.entries(attributes).filter(function (_ref) {
	    var _ref2 = _slicedToArray(_ref, 2),
	        value = _ref2[1];

	    return !is$1.nullOrUndefined(value);
	  }).forEach(function (_ref3) {
	    var _ref4 = _slicedToArray(_ref3, 2),
	        key = _ref4[0],
	        value = _ref4[1];

	    return element.setAttribute(key, value);
	  });
	}
function setAttributes(element, attributes) {
	  if (!is$1.element(element) || is$1.empty(attributes)) {
	    return;
	  } 
	  


	  Object.entries(attributes).filter(function (_ref) {
	    var _ref2 = _slicedToArray(_ref, 2),
	        value = _ref2[1];

	    return !is$1.nullOrUndefined(value);
	  }).forEach(function (_ref3) {
	    var _ref4 = _slicedToArray(_ref3, 2),
	        key = _ref4[0],
	        value = _ref4[1];

	    return element.setAttribute(key, value);
	  });
	}
function setAttributes ( element , attributes ) { if ( ! is$1 . element ( element ) || is$1 . empty ( attributes ) ) { return ; } // Assume null and undefined attributes should be left out, // Setting them would otherwise convert them to "null" and "undefined" Object . entries ( attributes ) . filter ( function ( _ref ) { var _ref2 = _slicedToArray ( _ref , 2 ) , value = _ref2 [ 1 ] ; return ! is$1 . nullOrUndefined ( value ) ; } ) . forEach ( function ( _ref3 ) { var _ref4 = _slicedToArray ( _ref3 , 2 ) , key = _ref4 [ 0 ] , value = _ref4 [ 1 ] ; return element . setAttribute ( key , value ) ; } ) ; }
Set attributes
Set attributes