Version: NextOn this pageisMetric() function isMetric(metric): metric is Object Checks if object is a Metric and returns narrowed type Parameters ParameterTypemetricany Returns metric is Object