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

1.0.0 • Public • Published

mutent-array

JavaScript Style Guide ci Coverage Status

Simple in memory adapter for Mutent.

import { Store } from 'mutent'
import { ArrayAdapter } from 'mutent-array'

const store = new Store({
  adapter: new ArrayAdapter()
})

store.create({ value: 42 })
  .unwrap()
  .then(data => {
    console.log(`Creation result: ${data === store.adapter.items[0]}`) // true
  })

Package Sidebar

Install

npm i mutent-array

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

4.45 kB

Total Files

5

Last publish

Collaborators

  • greguz