DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
es6 strip child is null from object
Object.keys(obj).forEach(k => (!obj[k] && obj[k] !== undefined) && delete obj[k]);
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#strip
#child
#null
#object
ADD COMMENT
Topic
COMMENT
Name
8+2 =
Submit