array-rotation

1.0.0 • Public • Published

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)

Package Sidebar

Install

npm i array-rotation

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

1.15 kB

Total Files

3

Last publish

Collaborators

  • rajesh0305