Nouveau Papier Mâché

    observable-patch

    1.0.2 • Public • Published

    observable-patch build status

    A computed observ the computes a patch between a base state and a patched state.

    var ObservPatch = require('observable-patch')
    var Observ = require('observ')
    var assert = require('assert')
     
    var first = Observ({a: 'a'})
    var last = Observ({a: 'a', b: 'b'})
    var diff = ObservPatch(first, last)
     
    // patch is computed by patcher
    assert.deepEqual(diff.patch(), {b: 'b'})

    Keywords

    none

    Install

    npm i observable-patch

    DownloadsWeekly Downloads

    2

    Version

    1.0.2

    License

    none

    Last publish

    Collaborators

    • nrw