Returns true if there are no metrics or KPIs in the argument, or if all of the entries in the Argument are themselves empty of data. This can be a useful debug function rather than function for calculating KPI values. It can also be valuable for defensive coding function if the incoming metrics are regularly missing due to the nature of the data or data source.

if (metrics.isNull()){
   console.log("No data available on date: %s", name)
}
Did this answer your question?