if have a text file I am parsing. I am using split to break the line
I want to then use splice to pick and choose the fields that I one.
so for example i have a string.
mystring = ‘1,2,3,4,5,6’
then i want to get an array but I only want the 2 field and the last
myarray = mystring.split(’,’).splice(1,3…5)
I can get the range 3…5 or i get the element splice(1).
Am I missing something?
Do i just build the array as normal and then make a new array from the
elements I need?