MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / findNamedUnit

Function findNamedUnit

src/compute-engine/numerics/unit-data.ts:366–368  ·  view source on GitHub ↗
(dim: DimensionVector)

Source from the content-addressed store, hash-verified

364 * We keep only the more general unit (Hz, Gy). Domain-specific aliases
365 * (Bq, Sv) are still in UNIT_TABLE for conversion and display; they're
366 * just not the automatic simplification targets.
367 */
368const NAMED_UNIT_BY_DIMENSION: Map<string, string> = new Map(
369 [
370 'N',
371 'J',

Callers 2

units.tsFile · 0.90
simplifyQuantityUnitFunction · 0.90

Calls 1

getMethod · 0.65

Tested by

no test coverage detected