MCPcopy Index your code
hub / github.com/fontsource/fontsource / findAxisKey

Function findAxisKey

packages/core/src/utils/variable.ts:125–129  ·  view source on GitHub ↗
(
	axisKeys: readonly VariableAxisKey[],
	candidate: string,
)

Source from the content-addressed store, hash-verified

123};
124
125const findAxisKey = (
126 axisKeys: readonly VariableAxisKey[],
127 candidate: string,
128): VariableAxisKey | undefined =>
129 axisKeys.find((axisKey) => axisKey.toLowerCase() === candidate.toLowerCase());
130
131/**
132 * Pick the smallest published axis key that can satisfy a selected set of axes. For example:

Callers 1

selectVariableAxisKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected