Skip to main content
Version: Next

isMetric()

function isMetric(metric): metric is Object

Checks if object is a Metric and returns narrowed type

Parameters

ParameterType
metricany

Returns

metric is Object