UNPKG

sugar

Version:

A Javascript utility library for working with native objects.

15 lines (10 loc) 317 B
'use strict'; var Sugar = require('sugar-core'), clone = require('./internal/clone'), mergeAll = require('./internal/mergeAll'); Sugar.Object.defineInstanceAndStatic({ 'addAll': function(obj, sources, opts) { return mergeAll(clone(obj), sources, opts); } }); module.exports = Sugar.Object.addAll;