Observable/evented array for mutable array methods
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
README.markdown
bower.json
component.json
example.html
index.js
package.json
specs.js

README.markdown

Oar (observable/evented array)

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

Mutable array methods in Javascript

Example

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'];
});

Tests

mocha specs.js -R should