{"id":17239376,"url":"https://github.com/tameemsafi/pick-truthy-values","last_synced_at":"2026-05-08T15:18:41.111Z","repository":{"id":57323837,"uuid":"173428910","full_name":"tameemsafi/pick-truthy-values","owner":"tameemsafi","description":"Utility function to remove any falsy values from arrays/object written in typescript","archived":false,"fork":false,"pushed_at":"2019-03-03T09:44:52.000Z","size":69,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-18T11:31:53.879Z","etag":null,"topics":["js","library","npm","typescript","utility"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/pick-truthy-values","language":"TypeScript","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/tameemsafi.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}},"created_at":"2019-03-02T09:31:55.000Z","updated_at":"2022-03-14T06:05:18.000Z","dependencies_parsed_at":"2022-09-09T09:20:46.279Z","dependency_job_id":null,"html_url":"https://github.com/tameemsafi/pick-truthy-values","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tameemsafi%2Fpick-truthy-values","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tameemsafi%2Fpick-truthy-values/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tameemsafi%2Fpick-truthy-values/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tameemsafi%2Fpick-truthy-values/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tameemsafi","download_url":"https://codeload.github.com/tameemsafi/pick-truthy-values/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245577729,"owners_count":20638368,"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":["js","library","npm","typescript","utility"],"created_at":"2024-10-15T05:48:35.343Z","updated_at":"2026-05-08T15:18:36.038Z","avatar_url":"https://github.com/tameemsafi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pickTruthyValues\n\n[![CircleCI](https://circleci.com/gh/tameemsafi/pick-truthy-values/tree/master.svg?style=svg)](https://circleci.com/gh/tameemsafi/pick-truthy-values/tree/master)\n\nUtility function which removes any falsy values from arrays/objects written in typescript.\n\n## Examples\n\n```js\nimport { pickTruthyValues } from 'pick-truthy-values'\n\npickTruthyValues({\n  a: null,\n  b: undefined,\n  c: '',\n  e: [],\n})\n\n// =\u003e {}\n\npickTruthyValues({\n  a: {\n    b: [\n      { c: null }\n    ]\n  }\n})\n\n// =\u003e {}\n\npickTruthyValues({\n  a: {\n    b: [\n      { c: null },\n      { d: 'test' }\n    ]\n  }\n})\n\n// =\u003e { a: { b: [ { d: 'test' } ] } } \n\npickTruthyValues([ 1, 2, 3, null, 4, 5, undefined, 6, false ])\n\n// =\u003e [ 1, 2, 3, 4, 5, 6, false ]\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftameemsafi%2Fpick-truthy-values","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftameemsafi%2Fpick-truthy-values","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftameemsafi%2Fpick-truthy-values/lists"}