Wednesday, March 13, 2019

using .indexOf on an array in JavaScript is just like using .indexOf on a string

You will get -1 if there is not a match and otherwise you will get the numeric position of the first match.

No comments:

Post a Comment