{"id":24561488,"url":"https://github.com/hadichahine/array-comparer","last_synced_at":"2025-07-30T01:33:56.691Z","repository":{"id":57183910,"uuid":"146762772","full_name":"hadichahine/array-comparer","owner":"hadichahine","description":"Compare two arrays based on some function.","archived":false,"fork":false,"pushed_at":"2018-08-31T14:24:41.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-22T05:21:19.772Z","etag":null,"topics":["array","compare","function","javascript"],"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/hadichahine.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":"2018-08-30T14:35:02.000Z","updated_at":"2022-01-18T19:33:13.000Z","dependencies_parsed_at":"2022-08-23T01:30:44.608Z","dependency_job_id":null,"html_url":"https://github.com/hadichahine/array-comparer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hadichahine/array-comparer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadichahine%2Farray-comparer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadichahine%2Farray-comparer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadichahine%2Farray-comparer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadichahine%2Farray-comparer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hadichahine","download_url":"https://codeload.github.com/hadichahine/array-comparer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadichahine%2Farray-comparer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266619704,"owners_count":23957291,"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-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["array","compare","function","javascript"],"created_at":"2025-01-23T08:21:09.743Z","updated_at":"2025-07-30T01:33:56.653Z","avatar_url":"https://github.com/hadichahine.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# array-comparer\nCompare two arrays based on some function.\n# Example\nHere's a number array comparer :\n```\nconst areArraysEqual = require(\"array-comparer\");\n\nfunction numberComparer(elementInFirstArray,symmetricElementInSecondArray){\n  return elementInFirstArray === symmetricElementInSecondArray;\n}  //Comparing function\n\nareArraysEqual([2,3,5],[2,3,5],numberComparer); //true\nareArraysEqual([2,3,5],[2,4,5],numberComparer); //false\n```\nYou can write any comparing function and pass it to the ```areArraysEqual```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadichahine%2Farray-comparer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhadichahine%2Farray-comparer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadichahine%2Farray-comparer/lists"}