-
-
Notifications
You must be signed in to change notification settings - Fork 261
London10-StellaDelMar_RodriguezFernandez-JavaScript-Core-1-Coursework-Week4 #240
base: main
Are you sure you want to change the base?
Conversation
Up to .G
from g to i. exercises
allExercises
} | ||
|
||
//*************************************************** | ||
|
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.
Usually we don't use ! in our arguments. Also the error code still needs to be returned (in the comments below).
return students.includes(any); | ||
} | ||
console.log(groupIsOnlyStudents); | ||
|
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.
'any' isn't defined anywhere, and maybe rethink what is going to go inside .every().
.every() takes an array and gives us back 'true' if every element passes a certain test - this test can be a function - It looks like this is what you were trying to do.
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.
Thank you 🙏 I see
let pairsByIndex = pairsByIndexRaw.filter( item => item.length === 2); | ||
|
||
|
||
// Complete this statement | ||
|
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.
Nice!
will do mandatory