-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
7Task.Max.Cichanau #873
base: master
Are you sure you want to change the base?
7Task.Max.Cichanau #873
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll mark the PR as "Draft", please click "ready for review" when it will be finished. Thank you!
task/07-yield-tasks.js
Outdated
return (res.done) | ||
? Promise.resolve(res.value) | ||
: Promise.resolve(res.value).then((res) => { | ||
return handle(gen.next(res)); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avoid this code style, if-else is more readable than multiple conditional operators ? :
task/07-yield-tasks.js
Outdated
@@ -33,7 +33,19 @@ | |||
* | |||
*/ | |||
function* get99BottlesOfBeer() { | |||
throw new Error('Not implemented'); | |||
|
|||
for (let i = 99; i>2; i--) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spaces around operators
https://travis-ci.com/github/Vpartyzan/js-assignments/builds/178555645