MCPcopy
hub / github.com/chartjs/Chart.js / _rlookupByKey

Function _rlookupByKey

src/helpers/helpers.collection.ts:70–75  ·  view source on GitHub ↗
(
  table: Record<string, number>[],
  key: string,
  value: number
)

Source from the content-addressed store, hash-verified

68 * @private
69 */
70export const _rlookupByKey = (
71 table: Record<string, number>[],
72 key: string,
73 value: number
74) =>
75 _lookup(table, value, index => table[index][key] >= value);
76
77/**
78 * Return subset of `values` between `min` and `max` inclusive.

Callers 1

Calls 1

_lookupFunction · 0.85

Tested by

no test coverage detected