Returns the numeric value for the Fact or the supplied fallback number if the value is null or NaN.

// the latest Fact
var latest = metrics.get('critical issues').getLatest();

var value = latest.value(); // could be NaN

console.log('The value for latest fact = %s', value);

if (!isNaN(value)){

    return value

}
Did this answer your question?