Skip to content

Instantly share code, notes, and snippets.

@brunos3d
Created December 13, 2022 14:38
Show Gist options
  • Save brunos3d/82b6238a8e5517083872381e1ace1537 to your computer and use it in GitHub Desktop.
Save brunos3d/82b6238a8e5517083872381e1ace1537 to your computer and use it in GitHub Desktop.
How to quickly filter out falsy values from an array
arrayWithFalsyItems.filter(Boolean)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment