Immutable Patch
Apply RFC 6902 style patches to Immutable.JS data structures, such as Maps
, Lists
, and Sets
.
Getting Started
You may get the module via npm:
npm install immutablepatch
And apply JSON patches to an immutable JSON object:
var Immutable = ;var patch = ; var list = Immutable;var ops = Immutable; var result = ;// var expected = Immutable.fromJS([1, 2, [3, 10]]);
You will probably need immutablediff
to generate diff operations.