src/helpers/getInstanceNameFromElement.js
function getInstanceNameFromElement(element) {
  let nameFromName = getAttribute(element, 'name');

  if (nameFromName !== null && nameFromName !== undefined && nameFromName !== '')
    return nameFromName;
  else
    return null;
}
function getInstanceNameFromElement(element) {
  let nameFromName = getAttribute(element, 'name');

  if (nameFromName !== null && nameFromName !== undefined && nameFromName !== '')
    return nameFromName;
  else
    return null;
}
function getInstanceNameFromElement ( element ) { let nameFromName = getAttribute ( element , 'name' ) ; if ( nameFromName !== null && nameFromName !== undefined && nameFromName !== '' ) return nameFromName ; else return null ; }
Gets the instance name from a DOM element.

@param {Node} element - The DOM element.

@return {string} The instance name.

@alias module:requiem~helpers.getInstanceNameFromElement
Gets the instance name from a DOM element .