Sonic
Installing
npm install sonicjs
Examples
Map and print a state, asynchronously.
;const log = consolelog; var state = State;var mapped = State; State; // [2,4,6]
Convert iterables over space and time.
const log = consolelog; var it = AsyncIterator;var state = State;var observable = Observable; AsyncIterator; // [['a', 1], ['b', 2]]AsyncIterator; // [['a', 1], ['b', 2]]AsyncIterator; // [['a', 1], ['b', 2]]
Create reactive stores
var log = consolelog; var state = State;var subject = Subject; var store = Store;var scanned = Store; State // { a: 3, b: 7, c: 12 } ; scanneddispatcher;