MCPcopy Index your code
hub / github.com/csev/py4e / addUnitAlias

Function addUnitAlias

code/gmane/Chart.bundle.js:1939–1942  ·  view source on GitHub ↗
(unit, shorthand)

Source from the content-addressed store, hash-verified

1937 var aliases = {};
1938
1939 function addUnitAlias (unit, shorthand) {
1940 var lowerCase = unit.toLowerCase();
1941 aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
1942 }
1943
1944 function normalizeUnits(units) {
1945 return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined;

Callers 1

Chart.bundle.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected