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.

Revisions

  1. lil12t renamed this gist Jan 10, 2021. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. lil12t created this gist Jan 10, 2021.
    3 changes: 3 additions & 0 deletions objectNotempty.ts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    const hasValues = Object.values({
    ...sample,
    }).some((val) => !isEmpty(val));