{"id":17008721,"url":"https://github.com/i-e-b/node-samevaluesas","last_synced_at":"2025-03-22T12:29:11.859Z","repository":{"id":21527076,"uuid":"24846318","full_name":"i-e-b/node-sameValuesAs","owner":"i-e-b","description":"A very relaxed 'deep equals' that allows for any order in arrays, even if array values are objects.","archived":false,"fork":false,"pushed_at":"2016-11-18T14:03:05.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T17:22:57.485Z","etag":null,"topics":["test-tools","working"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/i-e-b.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-06T13:13:54.000Z","updated_at":"2023-08-30T13:30:54.000Z","dependencies_parsed_at":"2022-08-21T16:41:05.343Z","dependency_job_id":null,"html_url":"https://github.com/i-e-b/node-sameValuesAs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i-e-b%2Fnode-sameValuesAs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i-e-b%2Fnode-sameValuesAs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i-e-b%2Fnode-sameValuesAs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i-e-b%2Fnode-sameValuesAs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/i-e-b","download_url":"https://codeload.github.com/i-e-b/node-sameValuesAs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244958819,"owners_count":20538621,"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":["test-tools","working"],"created_at":"2024-10-14T05:29:06.511Z","updated_at":"2025-03-22T12:29:11.830Z","avatar_url":"https://github.com/i-e-b.png","language":"JavaScript","readme":"node-sameValuesAs\n=================\n\nA very relaxed 'deep equals' that allows for any order in arrays, even if array values are objects.\n\nThis is a quick hack on https://www.npmjs.org/package/deep-equal and is probably full of bugs and strange\nbehaviours\n\nUsage\n-----\n\n```javascript\n    var compare = require(\"same-values-as\").compare;\n\n    compare(1, [1]);            // throws an exception telling you what the first difference is\n    compare([1,2,3] , [3,2,1]); // returns true with no exception\n```\n\nFeatures\n--------\n* Considers `null` and `undefined` to be equal\n* Compares the contents of arrays regardless of order (even if the children are objects)\n* Throws an error if the objects don't match and tells you the first difference, with a path in the object.\n* Tries to compare dates in a relaxed way (including where they are in strings or tick values)\n* Considers a property with an empty array to equal a missing property\n\nThat last one should be explained:\n\n```javascript\n{\n    \"one\": [2,3,4],\n    \"optional\": []\n}\n```\nis considered to be equal to\n```javascript\n{\n    \"one\": [2,3,4]\n}\n```\nbut **not** equal to\n```javascript\n{\n    \"one\": [2,3,4],\n    \"optional\": null\n}\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi-e-b%2Fnode-samevaluesas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fi-e-b%2Fnode-samevaluesas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi-e-b%2Fnode-samevaluesas/lists"}