0.0.1 • Published 7 years ago

sugary v0.0.1

Weekly downloads
2
License
MIT
Repository
-
Last release
7 years ago

sugary

A javascript library that offers extended functionality to standard javascript object types.

Currently in production, contributors welcome.

Array Prototype Functions

.cycle()

Optionally takes a starting index.

.cycle(2)

Example

let arrayCycle = ['John Smith', 'Chris Johnson', 'Mike Henry', 'Amy Michelle'].cycle(1);
arrayCycle.start();
arrayCycle.next();
arrayCycle.previous();