oar

Observable Array

Oar (observable/evented array)

Small module that overwrites all the mutatable array methods and fires the related event.

var a = oar();

or

var a = oar(['one', 'two']);
a.push('three');
 
a.on('push', function (updated_array) {
  console.log(update_array); // ['one', 'two', 'three']; 
});
mocha specs.js -R should