{"id":22021532,"url":"https://github.com/lamansky/get-own-property","last_synced_at":"2026-04-10T23:45:04.749Z","repository":{"id":57250342,"uuid":"112348634","full_name":"lamansky/get-own-property","owner":"lamansky","description":"[Node.js] Retrieves a property only if hasOwnProperty() is true.","archived":false,"fork":false,"pushed_at":"2017-11-28T15:02:46.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-25T15:05:50.856Z","etag":null,"topics":["hasownproperty","javascript","nodejs","property"],"latest_commit_sha":null,"homepage":"","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/lamansky.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}},"created_at":"2017-11-28T14:51:55.000Z","updated_at":"2017-12-02T10:08:05.000Z","dependencies_parsed_at":"2022-08-24T16:51:40.515Z","dependency_job_id":null,"html_url":"https://github.com/lamansky/get-own-property","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Fget-own-property","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Fget-own-property/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Fget-own-property/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Fget-own-property/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lamansky","download_url":"https://codeload.github.com/lamansky/get-own-property/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lamansky%2Fget-own-property/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":257129867,"owners_count":22494062,"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","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":["hasownproperty","javascript","nodejs","property"],"created_at":"2024-11-30T06:12:39.043Z","updated_at":"2026-04-10T23:45:04.688Z","avatar_url":"https://github.com/lamansky.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# getOwnProperty\n\nRetrieves a property only if [`hasOwnProperty()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty) is true.\n\n## Installation\n\n```bash\nnpm install get-own-property --save\n```\n\n## Usage\n\n```javascript\nconst getOwnProperty = require('get-own-property')\n\nconst obj = {hello: 'world'}\n\ngetOwnProperty(obj, 'hello') // 'world'\n\ntypeof obj.toString // 'function'\ngetOwnProperty(obj, 'toString') // undefined\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamansky%2Fget-own-property","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flamansky%2Fget-own-property","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flamansky%2Fget-own-property/lists"}