Looking for some help ... I am trying to figure out why my substring test isn't working as I expect it to.
Looking for some help ... I am trying to figure out why my substring test isn't working as I expect it to.
For further actions, you may consider blocking this person and/or reporting abuse
Md. Fahim Bin Amin -
Pelle Nilsen -
nnamdi nwaocha -
Mukhil Padmanabhan -
Top comments (1)
I figured it out myself. Sort of. String.substring() doesn’t behave the way I expected it to. String.includes(substring) does the job.