Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

immutable-model-view-key-by

Package Overview
Dependencies
1
Maintainers
1
Versions
185
Issues
File Explorer

Advanced tools

immutable-model-view-key-by

Immutable Model View to collect records into object keyed by property value

    0.3.0latest

Version published
Maintainers
1
Yearly downloads
4,209
decreased by-4.14%

Weekly downloads

Readme

Source

immutable-model-view-key-by

Immutable Model View to collect records into object keyed by property value.

Native async/await

Immutable Model View Key By requires Node.js v7.6.0 or greater with native async/await support.

Creating a new keyBy Model View

const ModelViewKeyBy = require('immutable-model-view-key-by') var fooModel = new ImmutableCoreModel({ name: 'foo', views: { default: ModelViewKeyBy('foo') } })

With ModelViewKeyBy('foo') set as the default view queries on fooModel will return an object keyed by the property foo instead of an array of records.

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc