Skip to content

Fix: Resolve cyclic loop, correct syntax, and add ISO helper functions - #3

Open
ankurgupta10 wants to merge 1 commit into
gopa810:mainfrom
ankurgupta10:minor-corrections
Open

Fix: Resolve cyclic loop, correct syntax, and add ISO helper functions#3
ankurgupta10 wants to merge 1 commit into
gopa810:mainfrom
ankurgupta10:minor-corrections

Conversation

@ankurgupta10

Copy link
Copy Markdown

This PR includes a few minor corrections and feature additions:

  1. Syntax fix: Corrected the lower casing for Math.floor.
  2. Context fix: Added the missing this keyword to correctly reference the object.
  3. New helpers: Added a couple of necessary functions to handle ISO codes:
    • get ISOCode()
    • static FindCountryByISOCode(code)
  4. Bug fix: Commented out a log statement (// console.log('Timezone offset x:', A[0])) that was causing a cyclic loop.

1 Math.floor - lowercase correction
2 Add 'this' operator
3 Add couple of needed functions
get ISOCode()
and
static FindCountryByISOCode(code)

4 Commenting below line - causing cyclic loop
// console.log('Timezone offset x:', A[0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant