{"id":13671421,"url":"https://github.com/ianstormtaylor/is-empty","last_synced_at":"2025-04-27T18:31:16.782Z","repository":{"id":10320145,"uuid":"12447771","full_name":"ianstormtaylor/is-empty","owner":"ianstormtaylor","description":"Check whether a value is empty.","archived":true,"fork":false,"pushed_at":"2019-03-07T23:13:12.000Z","size":11,"stargazers_count":46,"open_issues_count":5,"forks_count":18,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T16:15:46.205Z","etag":null,"topics":["browser","javascript","node","utility"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"hmatsuda/rails-transporter","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ianstormtaylor.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-29T00:36:11.000Z","updated_at":"2024-10-05T04:21:04.000Z","dependencies_parsed_at":"2022-08-30T13:51:38.471Z","dependency_job_id":null,"html_url":"https://github.com/ianstormtaylor/is-empty","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianstormtaylor%2Fis-empty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianstormtaylor%2Fis-empty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianstormtaylor%2Fis-empty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianstormtaylor%2Fis-empty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ianstormtaylor","download_url":"https://codeload.github.com/ianstormtaylor/is-empty/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251187116,"owners_count":21549585,"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":["browser","javascript","node","utility"],"created_at":"2024-08-02T09:01:09.335Z","updated_at":"2025-04-27T18:31:16.464Z","avatar_url":"https://github.com/ianstormtaylor.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\n\u003e **Archived:** I wrote this package quite a while ago, and I'd consider it an anti-pattern. The main use case for it is checking if an object is empty, which can be done with [`lodash.isEmpty`](https://lodash.com/docs/4.17.11#isEmpty) instead. In many other cases, it's easier and more clear for people reading your code to just check `val.length === 0` or `val.size === 0` instead of using a separate package for it. And people continue to ask for more things to be considered \"empty\" over time, which are breaking changes, and just make it harder to understand what the API this package really offers is. For that reason, I've archived this package and I don't recommend using it anymore.\n\n# is-empty\n\n  Check whether a value is empty.\n\n## Installation\n  \n```\n$ npm install is-empty\n$ npm test\n```\n\n## Example\n\n```js\nvar empty = require('is-empty');\n\nempty([]);              // true\nempty({});              // true\nempty('');              // true\nempty(0);               // true\nempty(function(){});    // true\nempty(null);            // true\nempty(undefined);       // true\nempty(new Map());       // true\nempty(new Set());       // true\nempty(new Error());     // true\n\nempty(true);            // false\nempty(false);           // false\nempty(['a', 'b']);      // false\nempty({ a: 'b' });      // false\nempty('string');        // false\nempty(42);              // false\nempty(function(a,b){}); // false\nempty(new Map([['key', 'value']])); // false\nempty(new Set([1]));    // false\nempty(new Error('fail'))// false\n```\n\n## API\n\n### isEmpty(value)\n\n  Check whether `value` is empty.\n\n## License\n\n  MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianstormtaylor%2Fis-empty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fianstormtaylor%2Fis-empty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianstormtaylor%2Fis-empty/lists"}