UNPKG

sugar

Version:

A Javascript utility library for working with native objects.

14 lines (9 loc) 240 B
'use strict'; var Sugar = require('sugar-core'), clone = require('./internal/clone'); Sugar.Object.defineInstanceAndStatic({ 'clone': function(obj, deep) { return clone(obj, deep); } }); module.exports = Sugar.Object.clone;