phaseshift

Phase shift an array

npm install phaseshift
1 downloads in the last week
1 downloads in the last month

phaseshift

Installation

npm install phaseshift

Usage

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]

Licence

MIT/X11

npm loves you