{"id":19041966,"url":"https://github.com/writetome51/is-empty-not-empty","last_synced_at":"2026-06-19T08:01:54.692Z","repository":{"id":122062419,"uuid":"180202259","full_name":"writetome51/is-empty-not-empty","owner":"writetome51","description":"2 javascript functions that check if the argument has a 'length' property with a value of 0","archived":false,"fork":false,"pushed_at":"2021-11-15T21:28:42.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-01T12:02:45.353Z","etag":null,"topics":["array","empty","javascript","object","string"],"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/writetome51.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-08T17:45:46.000Z","updated_at":"2021-11-15T21:41:17.000Z","dependencies_parsed_at":"2023-07-22T20:16:05.949Z","dependency_job_id":null,"html_url":"https://github.com/writetome51/is-empty-not-empty","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"63c5985a1d0887c7f07b67bcc1b12f4efa39812f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/writetome51/is-empty-not-empty","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Fis-empty-not-empty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Fis-empty-not-empty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Fis-empty-not-empty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Fis-empty-not-empty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/writetome51","download_url":"https://codeload.github.com/writetome51/is-empty-not-empty/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/writetome51%2Fis-empty-not-empty/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34522042,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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","empty","javascript","object","string"],"created_at":"2024-11-08T22:33:33.723Z","updated_at":"2026-06-19T08:01:54.674Z","avatar_url":"https://github.com/writetome51.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# isEmpty(arg): boolean\n\nReturns true if `arg.length === 0`.\n\n# notEmpty(arg): boolean\n\nReturns true if `arg.length !== 0`.\n\n## Examples\n```js\nisEmpty([]);\n// --\u003e true\n\nisEmpty('');\n// --\u003e true\n\nisEmpty({length: 0});\n// --\u003e true\n\nisEmpty({length: -1});\n// --\u003e false \n\nisEmpty();\n// TypeError: \"Cannot read property 'length' of undefined\"\n\nisEmpty(0);\n// Error: \"Input must have a 'length' property\"\n\nnotEmpty([0]);\n// --\u003e true\n\nnotEmpty('  ');\n// --\u003e true\n\nnotEmpty({length: -1})\n// --\u003e true\n\nnotEmpty();\n// TypeError: \"Cannot read property 'length' of undefined\"\n\nnotEmpty(1);\n// Error: \"Input must have a 'length' property\"\n```\n\n## Installation\n`npm i  @writetome51/is-empty-not-empty`\n\n## Loading\n```js\nimport { isEmpty, notEmpty } from '@writetome51/is-empty-not-empty';\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwritetome51%2Fis-empty-not-empty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwritetome51%2Fis-empty-not-empty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwritetome51%2Fis-empty-not-empty/lists"}