Skip to content

London | 26-ITP-May | Chinwe Chukwuma | Sprint 1 | Module-data-groups - #1341

Open
ChinweP wants to merge 7 commits into
CodeYourFuture:mainfrom
ChinweP:module-data-groups/sprint-1
Open

London | 26-ITP-May | Chinwe Chukwuma | Sprint 1 | Module-data-groups#1341
ChinweP wants to merge 7 commits into
CodeYourFuture:mainfrom
ChinweP:module-data-groups/sprint-1

Conversation

@ChinweP

@ChinweP ChinweP commented Jul 31, 2026

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Sprint 1 of Module-data-groups complete following readme instructions

@ChinweP ChinweP added 📅 Sprint 1 Assigned during Sprint 1 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Data-Groups The name of the module. labels Jul 31, 2026
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Aug 1, 2026

@LonMcGregor LonMcGregor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good work. This passes the tests.

I see one improvement to make.

Also, when I run the tests I get a notice about a test that is not done yet, can you resolve that?

@@ -1 +1,5 @@
function dedupe() {}
function dedupe(arr) {
return [...new Set(arr)];

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good use of a set

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thank you @LonMcGregor.

Comment thread Sprint-1/implement/max.js Outdated
if (numbers.length === 0) {
return -Infinity;
}
return Math.max(...numbers);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can you try implementing this without using the built-in max?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

OK. I'll look into this ASAP.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I've updated findMax to use a manual calculation instead of Math.max, and I removed the placeholder test.todo so all tests run successfully.

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Aug 1, 2026
@ChinweP ChinweP added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 4, 2026
@ChinweP
ChinweP requested a review from LonMcGregor August 4, 2026 15:18
@ChinweP ChinweP removed the Reviewed Volunteer to add when completing a review with trainee action still to take. label Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Data-Groups The name of the module. Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants