Rotate Array JS

var a = [0,1,2,3,4,5];
a.push( a.shift() );
// return [1,2,3,4,5,0]
a.unshift( a.pop() );
// return [5,0,1,2,3,4]
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.