isFiniteScore()
Returns true only for finite numeric score material.
Import
Section titled “Import”import { isFiniteScore } from "@graphrefly/ts/scoring";Signature
Section titled “Signature”function isFiniteScore(value: unknown): value is numberParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | unknown | Unknown value to check or decode. |
Returns
Section titled “Returns”true when the value matches the expected shape.
Example
Section titled “Example”import { isFiniteScore } from "@graphrefly/ts/scoring";Source
Section titled “Source”packages/ts/src/scoring/helpers.ts