Skip to content

Conversation

@shristi-rks
Copy link

completed assignment and tested using yarn run test

};

const findStudentName =(student, name)=> {
return student.filter( a => a.name === name )
Copy link
Member

Choose a reason for hiding this comment

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

when looking for one entry, it's recommended to use .find() instead of .filter()
as .find() will break the loop as soon as it finds it.

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.

2 participants