In JsApi 3.x I had this convenient method:
feature.layer.infoTemplate.title(feature);
What is the eqivalent method for JsApi 4.x (I assume infoTemplate from 3 becomes popupTemplate in 4, but title is no more a method: as a property, it returns a pattern with names of involved fields in accolades (as "{Incident_Types} incident on {Reported_Date}"), but is very hard to format field types like dates to the internal (locale) format (long-month-day-year - for example.)
(A related question on getting popup content may come soon, so if having a related solution - please put it here.)