{"id":17137965,"url":"https://github.com/lourd/js-equal-by-keys","last_synced_at":"2026-05-19T06:01:45.774Z","repository":{"id":57127147,"uuid":"119210131","full_name":"lourd/js-equal-by-keys","owner":"lourd","description":"Javascript utility function for comparing objects only for given keys","archived":false,"fork":false,"pushed_at":"2018-01-28T00:35:38.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-04T07:13:57.809Z","etag":null,"topics":["javascript","object-equality","react","small-modules","unix-philosophy","utility"],"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/lourd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-27T23:05:05.000Z","updated_at":"2018-01-27T23:48:12.000Z","dependencies_parsed_at":"2022-08-31T19:41:58.013Z","dependency_job_id":null,"html_url":"https://github.com/lourd/js-equal-by-keys","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/lourd/js-equal-by-keys","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lourd%2Fjs-equal-by-keys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lourd%2Fjs-equal-by-keys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lourd%2Fjs-equal-by-keys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lourd%2Fjs-equal-by-keys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lourd","download_url":"https://codeload.github.com/lourd/js-equal-by-keys/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lourd%2Fjs-equal-by-keys/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266041840,"owners_count":23867954,"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":["javascript","object-equality","react","small-modules","unix-philosophy","utility"],"created_at":"2024-10-14T20:08:22.840Z","updated_at":"2026-05-19T06:01:45.668Z","avatar_url":"https://github.com/lourd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @lourd/equal-by-keys [![npm package badge][npm-badge]][npm] [![Build status][travis-badge]][travis]\n\n[npm-badge]: https://img.shields.io/npm/v/@lourd/equal-by-keys.svg?style=flat-square\n[npm]: https://www.npmjs.com/package/@lourd/equal-by-keys\n[travis-badge]: https://travis-ci.org/lourd/js-equal-by-keys.svg\n[travis]: https://travis-ci.org/lourd/js-equal-by-keys\n\nThis single-function JavaScript module is a utility for comparing two objects for a given set of keys. I find it handy when looking for changing props in React component lifecycle methods like [`componentDidUpdate`](https://reactjs.org/docs/react-component.html#componentdidupdate).\n\n## Installation\n\n### npm\n\n```sh\nyarn install @lourd/equal-by-keys\n```\n\n### In the browser\n\n[Available as a simple `\u003cscript\u003e` through unpkg.com](https://unpkg.com/@lourd/equal-by-keys@0.1.0/umd/@lourd/equal-by-keys.js). The function will be available as the global variable `equalByKeys`.\n\n## API\n\n### `equalByKeys(objA: Object, objB: Object, ...keys: [String])`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flourd%2Fjs-equal-by-keys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flourd%2Fjs-equal-by-keys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flourd%2Fjs-equal-by-keys/lists"}