function _createElement( tagName, properties ) {
  var createdElement = document.createElement( tagName );
  var property;
  var hasOwnProperty = Object.hasOwnProperty.bind( properties );

  for ( property in properties || {} ) {
    if ( hasOwnProperty( property ) ) {
      createdElement.setAttribute( property, properties[property] );
    }
  }

  return createdElement;
}
/**
* Function used to create a dom element.
* @param {string} tagName - name of the type of dom element to create.
* @param {obect} properties - attributes used to assign to the element.
* @returns {HTMLNode} A dom element.
*/
Function used to create a dom element.
Function used to create a dom element .
function _createElement( tagName, properties ) {
  var createdElement = document.createElement( tagName );
  var property;
  var hasOwnProperty = Object.hasOwnProperty.bind( properties );
  for ( property in properties || {} ) {
    if ( hasOwnProperty( property ) ) {
      createdElement.setAttribute( property, properties[property] );
    }
  }
  return createdElement;
}
function _createElement ( tagName , properties ) { var createdElement = document . createElement ( tagName ) ; var property ; var hasOwnProperty = Object . hasOwnProperty . bind ( properties ) ; for ( property in properties || { } ) { if ( hasOwnProperty ( property ) ) { createdElement . setAttribute ( property , properties [ property ] ) ; } } return createdElement ; }
Function used to create a dom element.
Function used to create a dom element .