Fix zip function when zipping strings and numbers
Zipping a list of integers with a list of characters was failing. This
meant that enumerating over a string was also failing, since it used zip
under the hood.
@@ -555,8 +555,8 @@ __pragma__ ('endif')
// Zip method for arrays and strings
var zip = function () {
var args = [] .slice.call (arguments);
- if (typeof args [0] == 'string') {
for (var i = 0; i < args.length; i++) {
+ if (typeof args [i] == 'string') {
args [i] = args [i] .split ('');
}
}
