{"id":21715465,"url":"https://github.com/gkarthiks/isemptyobj","last_synced_at":"2026-05-05T19:33:01.013Z","repository":{"id":31264204,"uuid":"127401607","full_name":"gkarthiks/isEmptyObj","owner":"gkarthiks","description":"https://gkarthiks.github.io/isEmptyObj/   Checks the given object is empty recursively (if needed) and returns true for empty.","archived":false,"fork":false,"pushed_at":"2022-04-09T20:49:51.000Z","size":317,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-22T04:09:01.259Z","etag":null,"topics":["empty","empty-check","is-empty","is-empty-obj","null","null-check","nullobject"],"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/gkarthiks.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-03-30T08:17:04.000Z","updated_at":"2022-04-09T20:49:42.000Z","dependencies_parsed_at":"2022-08-07T16:15:39.859Z","dependency_job_id":null,"html_url":"https://github.com/gkarthiks/isEmptyObj","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gkarthiks%2FisEmptyObj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gkarthiks%2FisEmptyObj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gkarthiks%2FisEmptyObj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gkarthiks%2FisEmptyObj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gkarthiks","download_url":"https://codeload.github.com/gkarthiks/isEmptyObj/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gkarthiks%2FisEmptyObj/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259085449,"owners_count":22803203,"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":["empty","empty-check","is-empty","is-empty-obj","null","null-check","nullobject"],"created_at":"2024-11-26T00:44:53.133Z","updated_at":"2025-10-10T17:15:06.455Z","avatar_url":"https://github.com/gkarthiks.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# isEmptyObj\n\n![node](https://img.shields.io/badge/node-v8.0.0-blue.svg) ![license](https://img.shields.io/badge/license-MIT-green.svg) [![Build Status](https://travis-ci.org/gkarthiks/isEmptyObj.svg?branch=master)](https://travis-ci.org/gkarthiks/isEmptyObj)\n\nChecks the given object is empty recursively (if needed) and returns true for empty.\n\n### Why this?\nThis library checks the given `variable` or `object` for the *null* or *empty*. This will **recursively** goes into the object if needed and checks for the null / empty values. For example if an `Object` is having multiple levels and all those levels have just empty value, this will return `true`. Even at the least level, if it finds a value associated of with any type like Array or Object or String or even number this returns `false`.\n\n## Installation\n\u003e npm i @gkarthiks/isemptyobj\n\n## Usage\n```JS\nvar a = [];\n\nvar b = {};\n\nvar c = [{}];\n\nvar d = [{1:2}];\n\nvar e = { one: 1 };\n\nvar f = {\n  source: {}, \n  type: 'typeValue', \n  pool: {}, \n  acquireConnectionTimeout: 30000, \n  system: [ {\n            a: [1,2], \n            c: [5,6] \n            }, \n            2]\n  };\n\nvar g = {\ntimeseries: {\n  tillDate: ['val1', 'val2', 'val3', 'val4', 'val5']\n  }\n};\n\nvar h = {\n  timeseries: {\n    tillDate: [],\n    }\n};\n\nvar i = {\n  a: [], \n  b:{ }\n};\n\nvar j = {\n  a: [], \n  b:{ \n    aa:[11],\n    bb:{}\n  }\n};\n\nvar k = {\n  system: [ {\n            a: [1,2], \n            c: [5,6], \n            }, \n          2]\n};\n\nvar l = {\n      source: {}, \n      type: \"\", \n      pool: {},\n      acquireConnectionTimeout: '', \n      system: [ {\n        a: [], \n        c: []\n        }, \n      ]\n  };\n```\n\n```\nisEmptyObj(a)         // =\u003e true\nisEmptyObj(b)         // =\u003e true\nisEmptyObj(c)         // =\u003e true\nisEmptyObj(d)         // =\u003e false\nisEmptyObj(e)         // =\u003e false\nisEmptyObj(f)         // =\u003e false\nisEmptyObj(g)         // =\u003e false\nisEmptyObj(h)         // =\u003e true\nisEmptyObj(i)         // =\u003e true\nisEmptyObj(j)         // =\u003e false\nisEmptyObj(k)         // =\u003e false\nisEmptyObj(l)         // =\u003e true\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgkarthiks%2Fisemptyobj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgkarthiks%2Fisemptyobj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgkarthiks%2Fisemptyobj/lists"}