oar
1.0.0 • Public • Published Oar (observable/evented array)
Small module that overwrites all the mutatable array methods and fires the related event.
Mutable array methods in Javascript
Example
or
var a = oar(['one', 'two']);
a.push('three');
a.on('push', function (updated_array) {
console.log(update_array);
});
Tests
Dependencies (0)
Dev Dependencies (0)
Package Sidebar
Install
Weekly Downloads