Created
January 10, 2021 22:05
-
-
Save lil12t/b3864a7dccda9e385d8e70cee68f0b8a to your computer and use it in GitHub Desktop.
object has at least one property filled with data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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