GraphReFlyTS

API Reference

isFiniteScore()

Returns true only for finite numeric score material.

Import

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

Signature

function isFiniteScore(value: unknown): value is number

Parameters

ParameterTypeDescription
valueunknownUnknown value to check or decode.

Returns

true when the value matches the expected shape.

Example

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

Source

packages/ts/src/scoring/helpers.ts