Returns the numeric value of the latest, chronological, metric or KPI Fact in the FactList.  If no facts are in the list or all the facts have null or NaN values then return the default value passed to the function or NaN if a default value is not supplied.

var list = metrics.get('recorded time'); // returns a FactList
var latest = list.latest(0); // if list is empty 0 is returned

return latest;
Did this answer your question?