npm-array-test-example

1.0.2 • Public • Published

Join two array based on id

const {joinArray} = require('npm-array-test');

let a1 = [{
id: 1,
sname: "hu"
},
{
id: 2,
sname: "poc"
},
{
id: 3,
sname: "kol"
},
{
id: 2,
sname: "ilo"
}
]


let a2 = [{
id: 1,
name: "A"
},
{
id: 2,
name: "B"
},
{
id: 3,
name: "C"
},
]
let a = (joinArray(a1,a2))
console.log(a)

Readme

Keywords

Package Sidebar

Install

npm i npm-array-test-example

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

2.83 kB

Total Files

3

Last publish

Collaborators

  • souradip