tru_extend

1.0.0 • Public • Published

tru_extend

Use as jQuery $.extend() method

Usage

const extend = require('tru_extend');
 
var a = {
    toto: 'toto',
    tata: 'tata',
    a: {
        c: 'c'
    }
};
 
var b = {
    toto: 'toto2',
    titi: 'titi',
    a: {
        b: 'a'
    }
};
 
console.log(extend(true, a, b));
/*
{
    toto: 'toto2',
    tata: 'tata',
    a: {
        c: 'c',
        b: 'a'
    },
    titi: 'titi'
}
*/

Readme

Keywords

none

Package Sidebar

Install

npm i tru_extend

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

1.87 kB

Total Files

3

Last publish

Collaborators

  • thomasrudrauf