JavaScript - check if string starts with
javascript
Solution
if(someString.indexOf('/') === 0) {
}
Problem
I am trying to check if a string starts with the character: / How can i accomplish this?
javascript
if(someString.indexOf('/') === 0) {
}
I am trying to check if a string starts with the character: / How can i accomplish this?