Simplify _.toArray and wrapper methods.

Former-commit-id: b0440d401bd58cfa2d7aaf213549a824963474c3
This commit is contained in:
John-David Dalton
2012-12-25 17:06:51 -06:00
parent ef7cb26b01
commit e3b80a5e09
6 changed files with 87 additions and 90 deletions

View File

@@ -363,6 +363,8 @@
return match.replace(/^( *)return new lodash.+/m, function() {
var indent = arguments[1];
return indent + [
'',
'var result = func.apply(lodash, args);',
'if (this.__chain__) {',
' result = new lodash(result);',
' result.__chain__ = true;',