merge-anything

node v14.17.6
version: 2.0.0
endpointsharetweet
const { merge, mergeAndConcat } = require('merge-anything'); const objA = { name: 'Pankaj', lang: ['js', 'css'], social: { twitter: 'patel_pankaj_' } } const objB = { name: 'Pankaj Patel', lang: ['html', 'go'], social: { instagram: 'pankaj_patel' } } console.log('Merge', merge(objA, objB)) console.log('MergeAndConcat', mergeAndConcat(objA, objB))
Loading…

no comments

    sign in to comment