%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/medipszd/public_html/bower_components/moment/src/lib/units/
Upload File :
Create Path :
Current File : //home/medipszd/public_html/bower_components/moment/src/lib/units/priorities.js

var priorities = {};

export function addUnitPriority(unit, priority) {
    priorities[unit] = priority;
}

export function getPrioritizedUnits(unitsObj) {
    var units = [];
    for (var u in unitsObj) {
        units.push({unit: u, priority: priorities[u]});
    }
    units.sort(function (a, b) {
        return a.priority - b.priority;
    });
    return units;
}

Zerion Mini Shell 1.0