Details

    • Type: Technical Task
    • Status: Closed
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: 7.0.0 M6
    • Labels:
      None

      Description

      We can migrate away from having to call str.charAt(num) to being able to do str[num].
      This is useful if you wish to check if the first character of a string is a specific character.

      Special considerations:
      There are times when using charAt is preferable. For instance, charAt will return an empty string even if there is index you pass in is out of range, whereas doing str[-1] will return undefined. If the code is always assuming the use of a string, it might be better to use charAt()

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 29 weeks, 2 days ago

                Packages

                Version Package
                7.0.0 M6