# all files / kayn/dist/lib/Utils/ RegionHelper.js

83.33% Statements 10/12
75% Branches 3/4
33.33% Functions 1/3
81.82% Lines 9/11

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27

    1×

    1×

    1×

    1×

    1×

    2×

    1×

    1×

    1×'use strict';

    Object.defineProperty(exports, "__esModule", {
      value: true
    });

    var _regions = require('../Enums/regions');

    var _regions2 = _interopRequireDefault(_regions);

    var _platformIds = require('../Enums/platform-ids');

    var _platformIds2 = _interopRequireDefault(_platformIds);

    function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

    var asPlatformID = function asPlatformID(regionAbbr) {
      return _platformIds2.default[Object.keys(_regions2.default).filter(function (key) {
        return _regions2.default[key] === regionAbbr;
      })[0]];
    };

    var RegionHelper = {
      asPlatformID: asPlatformID
    };

    exports.default = RegionHelper;