random-flight-generator
Version:
A tool for generating random flights.
18 lines (17 loc) • 595 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Country = void 0;
var countries_json_1 = __importDefault(require("./data/countries.json"));
var Country = /** @class */ (function () {
function Country(code) {
this.code = code;
}
Country.prototype.getName = function () {
return countries_json_1.default[this.code];
};
return Country;
}());
exports.Country = Country;