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

Return to Question

deleted 10 characters in body
Source Link

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

const test={dataa:'a',b:{a},c:{c:{}}}

How to get result:

test={a:'a'}

or

test=null

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

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

const test={a:'a',b:{},c:{c:{}}}

How to get result:

test={a:'a'}
Source Link

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 によって変換されたページ (->オリジナル) /