{"id":22151195,"url":"https://github.com/leta91/check-js-object-has-a-specific-property","last_synced_at":"2025-09-07T01:07:54.813Z","repository":{"id":161022508,"uuid":"540308741","full_name":"leta91/check-js-object-has-a-specific-property","owner":"leta91","description":"How to check if a JavaScript object contains a specific property or not ","archived":false,"fork":false,"pushed_at":"2022-09-23T07:54:48.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T13:21:28.976Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leta91.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-23T06:28:58.000Z","updated_at":"2022-09-23T06:29:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"abdc244c-651a-4b66-80c3-e63a13f14876","html_url":"https://github.com/leta91/check-js-object-has-a-specific-property","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leta91/check-js-object-has-a-specific-property","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leta91%2Fcheck-js-object-has-a-specific-property","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leta91%2Fcheck-js-object-has-a-specific-property/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leta91%2Fcheck-js-object-has-a-specific-property/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leta91%2Fcheck-js-object-has-a-specific-property/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leta91","download_url":"https://codeload.github.com/leta91/check-js-object-has-a-specific-property/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leta91%2Fcheck-js-object-has-a-specific-property/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270005591,"owners_count":24510939,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-02T00:31:14.791Z","updated_at":"2025-08-12T05:09:26.273Z","avatar_url":"https://github.com/leta91.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Check if an Object has a Property (freeCodeCamp Challenge)\n\n## \"Basic Data Structures\" ➡️ Chapter 5\n##  Part of the JavaScript Certification ➡️ Lesson 17\n\n### There are 2 ways to check for the existence of an object property:\n1. `objectName.hasOwnProperty(\"propertyToCheck\");`\n2. `propertyToCheck in objectName;`\n\nthat, applied to this challenge, become:\n\n1. `peopleOnProjectObj.hasOwnProperty(\"Agnese\"), peopleOnProjectObj.hasOwnProperty(\"Rian\"), peopleOnProjectObj.hasOwnProperty(\"Michelle\"), peopleOnProjectObj.hasOwnProperty(\"Aiden\")`\n\n2. `\"Agnese\" in peopleOnProjectObj \u0026\u0026 \"Rian\" in peopleOnProjectObj \u0026\u0026 \"Michelle\" in peopleOnProjectObj \u0026\u0026 \"Aiden\" in peopleOnProjectObj`\n\n#### 🎯 Complete the Challenge:\nFinish writing the function so that it returns *true* if the object passed to it contains all 4 names:\n- `Agnese, Rian, Michelle` and `Aiden`\nand returns *false* otherwise [^1]\n\n[^1]: Double and single quotes are interchangeable in JavaScript\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleta91%2Fcheck-js-object-has-a-specific-property","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleta91%2Fcheck-js-object-has-a-specific-property","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleta91%2Fcheck-js-object-has-a-specific-property/lists"}