Details

      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

            Assignee:
            brian.chan Brian Chan
            Reporter:
            nathan.cavanaugh Nate Cavanaugh
            Recent user:
            Esther Sanz
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              5 years, 22 weeks, 4 days ago

                Packages

                Version Package
                7.0.0 M6