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)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    2

Package Sidebar

Install

npm i array-rotation

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

1.15 kB

Total Files

3

Last publish

Collaborators

  • rajesh0305