Array

License

MIT-style license.

Author

Takashi Mizohata bea.nosp@m.tak@nydd.nosp@m..org

Copyright

2008 [nydd](http://code.nydd.org/).

Code & Documentation

[nydd jslib](http://code.nydd.org/).

Inspiration

Everything is worthwhile / if the soul isn’t small.

Summary
ArrayMIT-style license.
Functions
vacuumClean up array non-destractively.

Functions

vacuum

Array.prototype.vacuum = function ()

Clean up array non-destractively.  This method will get rid of undefined value from the array.  Designed to be called after calling “delete array[i]”.  The method caller will not be changed.  See example.

Type

prototype

Examples

arr = arr.vacuum();

Retruns

(Array) array without undefined value in it.  Index may be changed.

Array.prototype.vacuum = function ()
Clean up array non-destractively.
Close