nua

Reference-preserving merge

Usage no npm install needed!

<script type="module">
  import nua from 'https://cdn.skypack.dev/nua';
</script>

README

nua

npm version Build Status Coverage Status Dependency Status DeepScan grade

Reference-preserving merge.

  var base = {a:{b:1}}
  var base_a = base.a
  var src = {a:{b:2}}

  Nua(base,src)
  expect(base).equal({a:{b:2}})
  expect(base_a === base.a).true()

Install

npm install nua

Notes

From the Irish nua. Pronounced noo-ah.

License

Copyright (c) 2014-2016, Seamus D'Arcy and other contributors. Licensed under MIT.