{"id":16666869,"url":"https://github.com/smelukov/nano-equal","last_synced_at":"2025-12-12T04:04:40.511Z","repository":{"id":57307770,"uuid":"53590169","full_name":"smelukov/nano-equal","owner":"smelukov","description":"Ultra fast and compact implementation of deep equal without any production dependencies.","archived":false,"fork":false,"pushed_at":"2017-11-16T11:59:01.000Z","size":22,"stargazers_count":19,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-10T22:52:38.137Z","etag":null,"topics":["comparison","deep-equals","equality","fast","no-dependencies"],"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/smelukov.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-03-10T14:19:57.000Z","updated_at":"2024-04-19T11:03:44.000Z","dependencies_parsed_at":"2022-08-31T09:22:07.395Z","dependency_job_id":null,"html_url":"https://github.com/smelukov/nano-equal","commit_stats":null,"previous_names":["smelukov/nanoequal"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/smelukov/nano-equal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smelukov%2Fnano-equal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smelukov%2Fnano-equal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smelukov%2Fnano-equal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smelukov%2Fnano-equal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smelukov","download_url":"https://codeload.github.com/smelukov/nano-equal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smelukov%2Fnano-equal/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259868583,"owners_count":22924236,"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":["comparison","deep-equals","equality","fast","no-dependencies"],"created_at":"2024-10-12T11:12:15.988Z","updated_at":"2025-12-12T04:04:35.466Z","avatar_url":"https://github.com/smelukov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/smelukov/nano-equal.svg?branch=master)](https://travis-ci.org/smelukov/nano-equal)\n[![npm version](https://badge.fury.io/js/nano-equal.svg)](https://badge.fury.io/js/nano-equal)\n\n## NanoEqual\nUltra fast and compact implementation of deep equal without any production dependencies.\n\n### Usage\n```shell\nnpm install nano-equal --save\n```\n\n```javascript\nvar nanoEqual = require('nano-equal');\n\nif (nanoEqual(a, b)) {\n    //....\n}\n```\n\n### What is that?\nThis is a compact and fast implementation of deep equal.\n\nDeep equal is an algorithm that comparing two values. If the values are a scalar (string, bool, number), then comparing will be performed thru === operator.\n\nIf the values are an object (object, array, function), then comparing will be performed recursively.\n\nFollowing of the object properties is not important:\n```javascript\nvar a = {prop1: 'some', prop2: 'some'};\nvar b = {prop2: 'some', prop1: 'some'};\n\nnanoEqual(a, b); // true\n```\n\nBut following of the array elements is important:\n```javascript\nvar a = [1, 2, 3];\nvar b = [3, 2, 1];\n\nnanoEqual(a, b); // false\n```\n\n\u003e NaN values and some types of recursion are supported.\n\n### Benchmark\n\nThe list below is showing the performance comparison nano-equal with other libs:\n\n```\nnanoEqual: 1362.813ms\nunderscore: 3791.308ms\nlodash: 7830.107ms\nnodejs: 8272.956ms\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmelukov%2Fnano-equal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmelukov%2Fnano-equal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmelukov%2Fnano-equal/lists"}