DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
delete empty values from object js
Object.keys(obj).forEach((k) => (obj[k] === null || obj[k] === undefined) && delete obj[k]);
PREVIOUS
NEXT
Tagged:
#delete
#empty
#values
#object
#js
ADD COMMENT
Topic
COMMENT
Name
9+6 =
Submit