[](https://travis-ci.org/jacobbubu/xtend) [](https://coveralls.io/github/jacobbubu/xtend) [


> Rewritten xtend in typescript for learning purpose.
``js
import { extend, mutableExtend } from '@jacobbubu/xtend'
// extend returns a new object. Does not mutate arguments
const combination = extend(
{
a: 'a',
b: 'c'
},
{
b: 'b'
}
)
// combination = { a: "a", b: "b" }
// mutate argument in-place
const a = { foo: 'bar' }
mutableExtend(a, { bar: 'baz' })
// a.bar = 'baz'
``