x-observable-list

1.0.0 • Public • Published

Observable list

Observable list is a JavaScript library providing a list implementation with change notifications.

Examples

var ObservableList = require('x-observable-list');
 
var list = new ObservableList([1, 2]);
list.changed.addListener(function(index, oldElements, newElements) {
    // index = 2, oldElements = [], newElements = [3]
});
list.add(3);

Installation

npm install --save x-observable-list

Readme

Keywords

Package Sidebar

Install

npm i x-observable-list

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • lexarx