mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Don't pass empty string when loop element is falsey
This commit is contained in:
parent
b6d6f4fdad
commit
2655a67b22
@ -97,7 +97,7 @@ module.exports = {
|
||||
};
|
||||
for (; i < len; i++) {
|
||||
var o = array[i];
|
||||
callback(o || '', loopStatus);
|
||||
callback(o, loopStatus);
|
||||
}
|
||||
},
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user