Guide

Installation

<scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.4/lodash.min.js"></script><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/rxjs/5.5.0/Rx.min.js"></script><scriptsrc="https://unpkg.com/frint-data@latest/dist/frint-data.min.js"></script><script>// available as `window.FrintData`</script>

const person =newPerson({
name:'Bathilda Bagshot',
books:[{ title:'A History of Magic'}]});// `person` is an instance of Person// `person.books` is an instance of Books// `person.books.at(0)` is an instance of Book

You could now add more books to the list as:

person.books.push(newBook({
name:'Hogwarts: A History'}));

Note

The API is highly inspired by Tydel, and this package aims to be a reactive version of it using RxJS.