JavaScript array shift

sta*_*nce -3 javascript arrays

I have a JavaScript array like this:

var myArray = [{obj1}, {obj2}..];
Run Code Online (Sandbox Code Playgroud)

I just want to shift all its items of one step down. So I want my array to become

var myArray = [{}, {obj1}, {obj2}..];
Run Code Online (Sandbox Code Playgroud)

As you can see, I want an empty object first, and then my other objects.

I already tried to perform a myArray.unshift({ }) function, it works but then Firebug fires me an error while manipulating my array. (Please note that my array is an ExtJS collection).

Thanks in advance

Tom*_*ear 6

使用该insert方法(http://docs.sencha.com/extjs/4.0.7/#!/api/Ext.Array)

var myArray = [{obj1}, {obj2}..];

Ext.Array.insert(myArray, 0, {});
Run Code Online (Sandbox Code Playgroud)