OleksaDid / iso-country-currency

MIT License
24 stars 13 forks source link

Key is not defined error - getISOByParam, getParamByParam and other functions in angular 13 application #26

Closed prakhar4321 closed 1 year ago

prakhar4321 commented 1 year ago

Functions like getISOByParam have for loop in them - for(key in dataJson). Here 'key' variable is not declared and therefore it throws error. It will be really helpful if these for loops can be fixed. We are using this package in angular 13 application which generates mjs file. Angular 13 strictly throws error for undeclared variables. Attaching the screenshot of the functions which need to be fixed. Screenshot 2023-01-21 at 15 44 27 Screenshot 2023-01-21 at 15 44 49 Screenshot 2023-01-21 at 15 46 35

OleksaDid commented 1 year ago

fixed in v0.7.0