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

@@ -147,6 +147,7 @@
var objectsMethods = [
'assign',
'clone',
'cloneDeep',
'defaults',
'extend',
'forIn',
@@ -248,6 +249,7 @@
/** List of methods used by Underscore */
var underscoreMethods = _.without.apply(_, [allMethods].concat([
'bindKey',
'cloneDeep',
'forIn',
'forOwn',
'isPlainObject',