javascript - Remove the first character of the first index of an array? -
question: how remove first character of first index of array.
var arr = ['/a','b','c','r'];
i output
var arr = ['a','b','c','r'];
use below code
arr[0] = arr[0].substr(1);
Comments
Post a Comment