UNPKG

@kraftvaerk/lota-js

Version:

Useful modular JavaScript bits with zero dependencies

6 lines (5 loc) 330 B
// extends source object with the destination object // i.e. ( {a: 'b' }, { c: 'd' }) => returns { a: 'b', c: ''d } // @source: object => default object to extend // @destination:object => object used to extend the source export const extend = (source, destination) => { return Object.assign({}, source, destination); };