Skip to content

Instantly share code, notes, and snippets.

@lil12t
Created January 10, 2021 22:05
Show Gist options
  • Save lil12t/b3864a7dccda9e385d8e70cee68f0b8a to your computer and use it in GitHub Desktop.
Save lil12t/b3864a7dccda9e385d8e70cee68f0b8a to your computer and use it in GitHub Desktop.
object has at least one property filled with data
const hasValues = Object.values({
...sample,
}).some((val) => !isEmpty(val));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment