-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use strict'; | ||
|
||
Object.defineProperty(exports, "__esModule", { | ||
value: !0 | ||
}); | ||
exports["default"] = vContinent; | ||
var _is = _interopRequireDefault(require("@valkyriestudios/utils/is")); | ||
var _mapKey = _interopRequireDefault(require("@valkyriestudios/utils/array/mapKey")); | ||
var _continents = _interopRequireDefault(require("@valkyriestudios/utils/data/continents.json")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
var MAP = (0, _mapKey["default"])(_continents["default"], 'code'); | ||
function vContinent(val) { | ||
if (!_is["default"].NeString(val)) return !1; | ||
return MAP.hasOwnProperty(val); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use strict'; | ||
|
||
Object.defineProperty(exports, "__esModule", { | ||
value: !0 | ||
}); | ||
exports["default"] = vCountry; | ||
var _is = _interopRequireDefault(require("@valkyriestudios/utils/is")); | ||
var _mapKey = _interopRequireDefault(require("@valkyriestudios/utils/array/mapKey")); | ||
var _countries = _interopRequireDefault(require("@valkyriestudios/utils/data/countries.json")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
var MAP = (0, _mapKey["default"])(_countries["default"], 'al2'); | ||
function vCountry(val) { | ||
if (!_is["default"].NeString(val)) return !1; | ||
return MAP.hasOwnProperty(val); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use strict'; | ||
|
||
Object.defineProperty(exports, "__esModule", { | ||
value: !0 | ||
}); | ||
exports["default"] = vCountryAlpha3; | ||
var _is = _interopRequireDefault(require("@valkyriestudios/utils/is")); | ||
var _mapKey = _interopRequireDefault(require("@valkyriestudios/utils/array/mapKey")); | ||
var _countries = _interopRequireDefault(require("@valkyriestudios/utils/data/countries.json")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
var MAP = (0, _mapKey["default"])(_countries["default"], 'al3'); | ||
function vCountryAlpha3(val) { | ||
if (!_is["default"].NeString(val)) return !1; | ||
return MAP.hasOwnProperty(val); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters