Search
 
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
Name
8+2 =