Skip to content

Conversation

@maxeasy18
Copy link
Collaborator

3-ю задачу (перевести функции из ДЗ 5 в стрелочные) не сделал, потому как еще смого 5го дз не делал.

return (obj.skills || obj.experience).some(function(arrVal){
if(typeof arrVal=== 'string'){
return arrVal === val;
}else{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't need else-statement there, just return is enough

@maxeasy18
Copy link
Collaborator Author

Task 3 is done (homework 5)
Return in 'else' statement is corrected

@maxeasy18
Copy link
Collaborator Author

Changes applied

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants