elastin
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Elastin

"Connective material" for your application.

npm i --save-dev elastin

Usage

import {autorun, query} from 'elastin';
 
const source = [{id: 1}, {id: '1'}, {id: 2}, {id: 3}];
let stream;
 
autorun(() => {
    stream = query.where('id', '>=', 123)(source);
    console.log(`length: ${source.length}`);
});
                        // [console] length: 0
source.push({id: 123}); // [console] length: 1
source.push({id: 321}); // [console] length: 2
array.push({id: 333});  // [console] length: 3
source.push({id: 5});   // nothing

Development

Readme

Keywords

none

Package Sidebar

Install

npm i elastin

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • rubaxa