I have object array, which looks like
Object {0: "tariffs", 1: "tariffs_yes", 2: "tariffs_no"}
from chrome's console
And I need to unshift this array and add {-1: 'new item'} to the beginning of array. I can't use array.unshift('newItem');
and array[-1] = 'new item...'
adds item to the top of array:
Object {0: "tariffs", 1: "tariffs_yes", 2: "tariffs_no", -1: "new item..."}
How can I add to the beginning?