Skip to content

Viking04/merge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@viking04/merge

huntr

Description

@viking04/merge is a simple npm package to merge many sources to target.

Note this package can be used only with plain objects or arrays and doesn't support complex types such as Date and Regex currently.

Installation

npm i @viking04/merge --save

Usage

var merge = require("@viking04/merge")
var a = {"a":{"red":"apple"}}
var b = {"b":{"yellow":"mango"}}
var c = {"a":{"orange":"orange"}}
merge(a,b,c)
console.log(a)
OUTPUT:
{ a: { red: 'apple', orange: 'orange' }, b: { yellow: 'mango' } }

Author

👤 Thrivikram G

About

@viking04/merge is a simple npm package to merge many sources to target.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published