You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can confirm the bug, it must omit brackets if there is only one statement and it's not a ReturnStatement or maybe just if it contains an expression. I will work on it, thank you!
Hello,
I have encountered some problems when using this code.
The arrow function does not add the return keyword after the conversion.
Here are the pre-conversion and post-conversion code.
JS:
Pre-conversion code :if(ships.some(s => s.ship.children('.boom').length == 0)){
console.log('111');
}
Post-conversion code:if (ships.some((s) => {
s.ship.children('.boom').length == 0;
//this line should "return s.ship.children('.boom').length == 0;"
})) {
console.log('111');
}
The text was updated successfully, but these errors were encountered: