0.1.2 • Published 8 years ago

dc-cursor v0.1.2

Weekly downloads
4
License
ISC
Repository
github
Last release
8 years ago

dc-cursor

WIP

An immutable data cursor implementation.

Quick start:

import { initCursor } from 'dc-cursor';

// create cursor instance
let onModelUpdate = function(newModel) {
  console.log('model updated, new value is:');
  console.log( newModel.$val() );
  model = newModel;
};

let model = initCursor([1, 2, 3], onModelUpdate);

// get value
console.log( model[0].$val() );
// => 1

// set value
model[0].$set('a');
// => model updated, new value is:
// => ['a', 2, 3]
0.1.2

8 years ago

0.1.1

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

9 years ago

0.1.0

9 years ago

1.0.0

9 years ago