Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 353 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 353 Bytes

Install

let {shelf_merge} = require('shelf-merge')

or

<script src="https://unpkg.com/shelf-merge"></script>

Use

let {shelf_merge} = require('shelf-merge')

let shelf = [{hello: "world"}, [1, {hello: 1}]]

console.log(shelf[0].hello) // direct reads

let change = shelf_merge(shelf, {more: "data"}) // version info infered