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?

Original source

Related problems