array-rotation
v1.0.0
Published
======================
Maintainers
Readme
#Array Rotation
const ArrayRotation = require('array-rotation');
#Array Left Rotaition
const ArrayRotation = require('array-rotation'); //array = [1,2,3,4] ,numberofTimes=3 ArrayRotation.arrayLRotate(array,numberofTimes)
Example
ArrayRotation.arrayLRotate([1,2,3,4],3)
#Array Right Rotaition
//array = [1,2,3,4] ,numberofTimes=3 ArrayRotation.arrayRRotate(array,numberofTimes)
Example
ArrayRotation.arrayRRotate([1,2,3,4],3)
