The Javascript splice only works with arrays. Is there similar method for strings? Or should I create my own custom function?
splice
The substr(),
substr()
Simply use substr for string
ex.
var str = "Hello world!"; var res = str.substr(1, str.length);
Result = ello world!