Skip to content
PACKAGES

isFiniteScore()

Returns true only for finite numeric score material.

import { isFiniteScore } from "@graphrefly/ts/scoring";
function isFiniteScore(value: unknown): value is number
ParameterTypeDescription
valueunknownUnknown value to check or decode.

true when the value matches the expected shape.

import { isFiniteScore } from "@graphrefly/ts/scoring";

packages/ts/src/scoring/helpers.ts