964: 'iq', 972: 'il', 962: 'jo', 965: 'kw', 996: 'kg', 961: 'lb', 960: 'mv', 976: 'mn', 977: 'np', 968: 'om', 970: 'ps', 974: 'qa', 966: 'sa', 963: 'sy', 992: 'tj', 993: 'tm', 971: 'ae', 998: 'uz', 967: 'ye', 93: 'af', 91: 'in', 98: 'ir', 95: 'mm', 92: 'pk', 94: 'lk', 90: 'tr', }, }; const first = phoneValue[0]; if (first) prefixes = prefixes[first]; for (let [prefix, country] of Object.entries(prefixes)) { if (phoneValue.startsWith(prefix)) { return country; } } return '';}