{"id":15862260,"url":"https://github.com/afeiship/next-compact","last_synced_at":"2026-05-15T22:35:35.398Z","repository":{"id":57112642,"uuid":"102561353","full_name":"afeiship/next-compact","owner":"afeiship","description":"Returns a copy of the arraywith all falsy values removed.","archived":false,"fork":false,"pushed_at":"2021-09-27T05:24:56.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-28T17:48:59.148Z","etag":null,"topics":["array","compact","false","falsy","filter","next","nil"],"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/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-06T04:07:37.000Z","updated_at":"2021-09-27T05:24:58.000Z","dependencies_parsed_at":"2022-08-21T12:00:23.406Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/next-compact","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/next-compact","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-compact","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-compact/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-compact/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-compact/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/next-compact/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-compact/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33082079,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","compact","false","falsy","filter","next","nil"],"created_at":"2024-10-05T22:25:59.605Z","updated_at":"2026-05-15T22:35:35.383Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# next-compact\n\u003e Returns a copy of the array/object with all falsy values removed.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```bash\nnpm install -S @jswork/next-compact\n```\n\n## usage\n```js\nimport '@jswork/next-compact';\n\nconst arr1 = [0, 1, false, 2, '', 3];\nconst arr2 = [0, 1, false, 2, '', 3, [], [], 'a'];\n\nconst result1 = nx.compact(arr);\nconst result2 = nx.compact(obj);\n\n// [1, 2, 3]\n// [1, 2, 3, 'a']\n```\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/next-compact/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/next-compact\n[version-url]: https://npmjs.org/package/@jswork/next-compact\n\n[license-image]: https://img.shields.io/npm/l/@jswork/next-compact\n[license-url]: https://github.com/afeiship/next-compact/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-compact\n[size-url]: https://github.com/afeiship/next-compact/blob/master/dist/next-compact.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/next-compact\n[download-url]: https://www.npmjs.com/package/@jswork/next-compact\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-compact","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fnext-compact","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-compact/lists"}