Ensure _.reduce works with string Objects in IE < 9.

Former-commit-id: 0ee3496e52f4c393900f37f03e451b8e4abba206
This commit is contained in:
John-David Dalton
2012-08-26 01:04:09 -07:00
parent 1c69d9213e
commit f460c77f2c
2 changed files with 25 additions and 1 deletions

View File

@@ -2152,7 +2152,7 @@
'var noaccum = arguments.length < 3;\n' +
'if (thisArg) callback = iteratorBind(callback, thisArg)',
'beforeLoop': {
'array': 'if (noaccum) result = collection[++index]'
'array': 'if (noaccum) result = iteratee[++index]'
},
'inLoop': {
'array':