MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / addUnitAlias

Function addUnitAlias

tests/test_code/js/moment/moment.js:629–632  ·  view source on GitHub ↗
(unit, shorthand)

Source from the content-addressed store, hash-verified

627 var aliases = {};
628
629 function addUnitAlias(unit, shorthand) {
630 var lowerCase = unit.toLowerCase();
631 aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit;
632 }
633
634 function normalizeUnits(units) {
635 return typeof units === 'string'

Callers 1

moment.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected