@launchdarkly/observability + @launchdarkly/session-replay
    Preparing search index...

    Function isMetricSafeNumber

    • Check that a value is safe to use as a metric.

      This means the number must be a number, be finite, and not NaN. NaN and Infinity serialize to null, which produces an invalid metric payload.

      Parameters

      • value: unknown

        The value to check.

      Returns boolean

      True if the value is safe to use as a metric, false otherwise.