Function: toId()
toId(
v):string
Defined in: packages/sdvplot/src/selection.ts:95
The link id of a value: String(v), or "" (never matched) for null, undefined, NaN and "". A figure and a table
link only when they hold the same ids, so an ESPN team id ("12") never matches an abbreviation ("KC").
Parameters
v
unknown
Returns
string
Example
import { toId } from "@sportsdataverse/sdvplot";
[toId(12), toId("KC"), toId(null), toId(Number.NaN)];