Add _.cloneDeep alias of _.clone(…, true). [closes #140]

Former-commit-id: b71397d5c5b71cb28a60eb4656cbaf12f6b03d1a
This commit is contained in:
John-David Dalton
2012-12-14 00:24:02 -08:00
parent b2af8da9a2
commit 90597530a4
5 changed files with 46 additions and 22 deletions

View File

@@ -71,6 +71,7 @@
'bindAll': ['bind', 'functions'],
'bindKey': ['isFunction', 'isObject'],
'clone': ['assign', 'forEach', 'forOwn', 'isArray', 'isObject'],
'cloneDeep': ['clone'],
'compact': [],
'compose': [],
'contains': ['indexOf', 'isString'],
@@ -239,6 +240,7 @@
/** List of methods used by Underscore */
var underscoreMethods = _.without.apply(_, [allMethods].concat([
'bindKey',
'cloneDeep',
'forIn',
'forOwn',
'isPlainObject',