Skip to content

Sheffield | 26-ITP-jan | Richard Frimpong | Sprint 1 | Data Groups Implement#1003

Open
Richiealx wants to merge 1 commit intoCodeYourFuture:mainfrom
Richiealx:coursework/sprint-1-implement
Open

Sheffield | 26-ITP-jan | Richard Frimpong | Sprint 1 | Data Groups Implement#1003
Richiealx wants to merge 1 commit intoCodeYourFuture:mainfrom
Richiealx:coursework/sprint-1-implement

Conversation

@Richiealx
Copy link

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

This pull request contains my solutions for the Sprint 1 - Implement exercises in the Module Data-Groups.

Implemented functions

I implemented the required functions in the following files:

  • Sprint-1/implement/sum.js
  • Sprint-1/implement/max.js
  • Sprint-1/implement/dedupe.js

These functions perform the following tasks:

  • sum - calculates the total of numeric values in an array while ignoring non-numeric elements
  • findMax - returns the largest numeric value in an array while ignoring non-numeric elements
  • dedupe - removes duplicate values from an array while preserving the first occurrence

Corresponding test cases were completed in:

  • sum.test.js
  • max.test.js
  • dedupe.test.js

Testing

All tests were run locally using:
cd Sprint-1
npm test -- implement

All tests passed successfully.


@Richiealx Richiealx added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant