Skip to content

Birmingham | 26-ITP-May | Gabriel Pawuoi | Sprint 2 | implement contains function and tests - #1405

Closed
KhotKeys wants to merge 1 commit into
CodeYourFuture:mainfrom
KhotKeys:contains
Closed

Birmingham | 26-ITP-May | Gabriel Pawuoi | Sprint 2 | implement contains function and tests#1405
KhotKeys wants to merge 1 commit into
CodeYourFuture:mainfrom
KhotKeys:contains

Conversation

@KhotKeys

@KhotKeys KhotKeys commented Aug 8, 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

  • Implemented the contains function using hasOwnProperty to check if an object has a given property, with a type guard that returns false for non-objects and arrays.

  • Added tests covering an empty object, an existing property, a non-existent property, and an invalid input like an array.

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown

The files changed in this PR don't match what is expected for this task.

Please check that you committed the right files for the task, and that there are no accidentally committed files from other sprints.

Please review the 'files changed' tab at the top of the page.

Here is an example of a file that has been changed on this branch but shouldn't be: Sprint-3/alarmclock/alarmclock.js

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.

@KhotKeys KhotKeys closed this Aug 8, 2026
@KhotKeys
KhotKeys deleted the contains branch August 8, 2026 00:10
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.

1 participant