Rotate all items in an array
npm install arr-rotate> Rotate all items in an array
```
$ npm install arr-rotate
`js
const arrRotate = require('arr-rotate');
arrRotate(['foo', 'bar', 'unicorn'], 2);
//=> ['bar', 'unicorn', 'foo']
arrRotate(['foo', 'bar', 'unicorn'], 1);
//=> ['unicorn', 'foo', 'bar']
arrRotate(['foo', 'bar', 'unicorn'], -1);
//=> ['bar', 'unicorn', 'foo']
`
#### input
Type: Array
Array to rotate.
#### num
Type: number0`
Default:
Number of steps to rotate.
MIT © Kevin Martensson