Skip to content

Cape Town | 26-ITP-May | Enice Mutanda | Sprint 1 |Data groups - #1395

Open
Enice-Codes wants to merge 2 commits into
CodeYourFuture:mainfrom
Enice-Codes:Data-Groups
Open

Cape Town | 26-ITP-May | Enice Mutanda | Sprint 1 |Data groups#1395
Enice-Codes wants to merge 2 commits into
CodeYourFuture:mainfrom
Enice-Codes:Data-Groups

Conversation

@Enice-Codes

Copy link
Copy Markdown

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

tested all tasks locally and passed
modefied tasks
used for...loop
used if statements

@Enice-Codes Enice-Codes 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. labels Aug 6, 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, just one comment in the median

Comment thread Sprint-1/fix/median.js
} else {
return numbersOnly[middleIndex];
}
const median = numbersOnly.splice(middleIndex, 1)[0]; //

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

If this is the last thing you do in a function before returning, is it necessary to store this in a constant?

@@ -1 +1,8 @@
function dedupe() {}
function dedupe(arr) {
return arr.filter((item ,index ) => arr.indexOf(item)=== index);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is a good approach, good idea

@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. labels Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants