phaseshift

Phase shift an array

phaseshift

npm install phaseshift

var phase = require('phaseshift');
 
phase([1,2,3,4]);     // [4,1,2,3] 
phase([1,2,3,4], 1);  // [4,1,2,3] 
phase([1,2,3,4],-1);  // [2,3,4,1] 

MIT/X11