Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Revisions

1 of 2

How to remove all blank Objects from an Object in Javascript?

How to remove all blank Objects from an Object in Javascript? Like this

const test={data:{a:{}}

How to get result:

test={}

or

test=null
lang-js

AltStyle によって変換されたページ (->オリジナル) /