more histarray

I am not sure if it is even useful for anything. But I am having fun dorking on it.
New Features.
added pop() method
added splice() method
unified adding and removing for more accurate revision and length

New Home
I have been using hithub for a little now, and have put this up as my first public repo.

*Notes
There is one big, probably unresolvable issue. You have to push in new elements.

 var a = Array('one', 'two', 'three');
 a[12] = 12;
 // this would result in an array with a length of 13
 // with 3-12 undefined.

The way the getters and setters are setup, unless I where to define ervythin’ there would be nothing waiting to assign an element to the internal array.

Next Steps (if any)
Implement standard array features
Decide if push should be like an array push and create a new method for historical pushes.

Last up
I also finally got around to figuring out qunit unit testing. It is really easy to use, not sure why I have not been using it longer. I have 19(?) tests right now, and they are in /test in the repo.

Comments are closed.