UNPKG

ggez-banking-sdk

Version:

A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.

15 lines (14 loc) 544 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getStateByCountry = getStateByCountry; const state_1 = __importDefault(require("../content/state")); function getStateByCountry(code) { if (typeof code == "string") { code = Number(code); } const stateObj = state_1.default.filter((state) => state.Country_Code === code); return stateObj ?? ""; }