mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
fixing If/else-to-ternary with instanceof as an unparenthesized condition. JS operator precedence.
This commit is contained in:
parent
24a5adc898
commit
de9fb7777b
5 changed files with 21 additions and 9 deletions
|
@ -80,7 +80,7 @@
|
|||
_b = array;
|
||||
for (_a = 0, _c = _b.length; _a < _c; _a++) {
|
||||
item = _b[_a];
|
||||
item instanceof Array ? (memo = memo.concat(item)) : memo.push(item);
|
||||
(item instanceof Array) ? (memo = memo.concat(item)) : memo.push(item);
|
||||
}
|
||||
return memo;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue