Phase shift an array
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
assert-browser.js
package.json
phaseshift.js
test-browser.html
test.js

README.md

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