Can anyone explain me: why is this wrong:
if (current <= last) {
    //here!
    return
    {
        done: false,
        value: current++
    };
} else {
    return
    {
        done: true
    };
}
and this is right ?
if (current <= last) {
    //error here
    return {
        done: false,
        value: current++
    };
} else {
    return {
        done: true
    };
}
In both cases code returns object, but when i moving first brace of object to a new line code stop working.
 
    