diff --git a/README.md b/README.md index 15fea71..1436233 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,16 @@ This is a mostly-compatible re-implementation of [react's update function](https ## next: { a: 1, b: 2 } ## orig: { a: 1 } +## Usage (ES5) + + var update = require("update-immutable").default; + + var orig = { a: 1 }; + var next = update(orig, { b: { $set: 2 } }); + + ## next: { a: 1, b: 2 } + ## orig: { a: 1 } + ## Features