{"id":21198785,"url":"https://github.com/natlibfi/object-comparison","last_synced_at":"2025-06-26T20:09:53.137Z","repository":{"id":53732382,"uuid":"41904223","full_name":"NatLibFi/object-comparison","owner":"NatLibFi","description":"Check if two Javascript objects are equal enough","archived":false,"fork":false,"pushed_at":"2021-03-17T11:30:31.000Z","size":78,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-14T22:22:00.832Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NatLibFi.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":"2015-09-04T07:56:20.000Z","updated_at":"2016-01-12T20:22:22.000Z","dependencies_parsed_at":"2022-08-30T11:00:58.032Z","dependency_job_id":null,"html_url":"https://github.com/NatLibFi/object-comparison","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NatLibFi/object-comparison","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLibFi%2Fobject-comparison","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLibFi%2Fobject-comparison/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLibFi%2Fobject-comparison/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLibFi%2Fobject-comparison/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NatLibFi","download_url":"https://codeload.github.com/NatLibFi/object-comparison/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLibFi%2Fobject-comparison/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262137149,"owners_count":23264674,"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":[],"created_at":"2024-11-20T19:53:26.547Z","updated_at":"2025-06-26T20:09:53.101Z","avatar_url":"https://github.com/NatLibFi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Object comparison [![Build Status](https://travis-ci.org/NatLibFi/record-loader-prototypes.svg)](https://travis-ci.org/NatLibFi/object-comparison) [![Test Coverage](https://codeclimate.com/github/NatLibFi/object-comparison/badges/coverage.svg)](https://codeclimate.com/github/NatLibFi/object-comparison/coverage)\n\nA function to check if two Javascript objects are equal enough. Returns a boolean indicating whether the objects are equal or not.\n\n**ONLY SUPPORTS JSON-SERIALIZABLE OBJECTS. IN OTHER WORDS: FUNCTION PROPERTIES CANNOT BE COMPARED**\n\n## Usage\n\n### AMD\n\n```javascript\ndefine(['object-comparison'], function(objectCompare) {\n  if (objectCompare(o1, o2)) {\n    console.log('equal');\n  }\n});\n```\n\n### Node.js\n\n```javascript\nvar objectCompare = require('object-comparison');\n\nif (objectCompare(o1, o2)) {\n  console.log('equal');\n}\n```\n\n### Browser globals\n\n```javascript\nif (objectCompare(o1, o2)) {\n  console.log('equal');\n}\n```\n\n## Configuration\n\nThe functions takes an object as a third argument which can have the following properties:\n\n* **strict** (*boolean*): If true, primitive types are compared with strict equality operator (===) (**Default**: *true*)\n* **order** (*boolean*): If true, array elements must be in same order (**Default**: *true*)\n* **caseSensitive** (*boolean*): If true, string values (As such, as array values or as object values) are compared case-sensitive. (**Default**: *true*)\n\n## License and copyright\n\nCopyright (c) 2015-2016 **University Of Helsinki (The National Library Of Finland)**\n\nThis project's source code is licensed under the terms of **GNU General Public License Version 3**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatlibfi%2Fobject-comparison","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatlibfi%2Fobject-comparison","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatlibfi%2Fobject-comparison/lists"}