Remove undefined key.js

Explicitly remove undefined key of given object in javascript.

logo
javascript

Object.keys(obj).forEach(key => obj[key] === undefined && delete obj[key])

©2021 Anvaqta Tangguh Wisesa. All Rights Reserved.