Skip to content

0xD34F/circular-array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Circular array

Creating an array:

let a = CircularArray(1, 2, 3, 4, 5);

Indexing beyond [0 .. a.length) interval:

console.log(a[5]); // 1

a[-1] = 1000;
console.log(a.toString()); // 1,2,3,4,1000

About

Proxy in javascript: simple example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages