model, and collection library for class based or pojo models
npm install metamonMetamon
======
   
Share Data Representations (Models, Collections) Node and the Browser
Read the DOCS
Metamon is a toolkit for consistency with the representations of your data between Node applications and Browsers.
It provides methods for creating, indexing, manipulating, and maintaining consistency with the representations.
Metamon is available via npm for Node, for the Browser via CDN, and bower
#### jsDelivr CDN
##### Minified
``html``
##### Un-Minifiedhtml``
##### CommonJShtml`
shell
npm i -S metamon
`$3
You can install metamon via bower with:
`shell
bower install metamon
`$3
Using ES6 Classes as state really don't play well with Redux. SEE: Why Not to Store Objects In Redux
`javascript
import {Model} from 'metamon/index.es6.js';
class PersonCollection extends Model {}
// inside a reducer
switch(action.type) {
case 'LOAD_USERS': {
return new PersonCollection(action.users, User).toArray();
}
default: {
return state
}
}
``