@gswl/merge
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

merge

let a = {x:1,y:{a:2}};
let b = {x:3,y:{a:4}};
let oldY = b.y;
mergeTo(a,b);
console.log(b.y.a) // 4
console.log(oldY === b.y) // true

Readme

Keywords

none

Package Sidebar

Install

npm i @gswl/merge

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

1.59 kB

Total Files

4

Last publish

Collaborators

  • gswlwp