I have a js 2d array
var a = [["a","b","c","d","e","f"]]
I need to discard the last and insert at the first position
var result = [["new","a","b","c","d","e"]] //<------ "f" has to be discarded
I have tried with
a.unshift("new")
How do I do it?