Skip to content

Enome/oar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Observable/evented array for mutable array methods

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published