code: function elemToString(element) {
    return (
      element === null ? 'null' :
      isUndefined(element) ? 'undefined' :
      typeof element !== 'object' ? element.toString() :
      isDate(element) ? element.toISOString() :
      element.toString()
    );
  }
docs: Converts the element into a string (e.g. for printing purposes)