PATH:
opt
/
bitninja-threat-hunting
/
node_modules
/
moment
/
src
/
lib
/
units
import hasOwnProp from '../utils/has-own-prop'; var aliases = {}; export function addUnitAlias(unit, shorthand) { var lowerCase = unit.toLowerCase(); aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit; } export function normalizeUnits(units) { return typeof units === 'string' ? aliases[units] || aliases[units.toLowerCase()] : undefined; } export function normalizeObjectUnits(inputObject) { var normalizedInput = {}, normalizedProp, prop; for (prop in inputObject) { if (hasOwnProp(inputObject, prop)) { normalizedProp = normalizeUnits(prop); if (normalizedProp) { normalizedInput[normalizedProp] = inputObject[prop]; } } } return normalizedInput; }
[-] month.js
[edit]
[-] minute.js
[edit]
[-] week.js
[edit]
[-] era.js
[edit]
[-] timestamp.js
[edit]
[-] quarter.js
[edit]
[-] second.js
[edit]
[+]
..
[-] offset.js
[edit]
[-] week-year.js
[edit]
[-] day-of-month.js
[edit]
[-] priorities.js
[edit]
[-] timezone.js
[edit]
[-] year.js
[edit]
[-] week-calendar-utils.js
[edit]
[-] day-of-week.js
[edit]
[-] millisecond.js
[edit]
[-] day-of-year.js
[edit]
[-] aliases.js
[edit]
[-] hour.js
[edit]
[-] constants.js
[edit]
[-] units.js
[edit]