0.1.2 • Published 7 years ago

dc-cursor v0.1.2

Weekly downloads
4
License
ISC
Repository
github
Last release
7 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

7 years ago

0.1.1

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

0.1.0

7 years ago

1.0.0

7 years ago