Convert undefined keys to null using array.reduce()
Hi π
Objective : Convert the undefined keys of an object to null without mutating the original object.
Focus : Usage of array reduce method.
Lets take the below object as our target -
const testObject = {
name: 'example',
age: '',
address : '',
ci...
Β·2 min readΒ·blog.lalitsheoran.comRead the article
Mukund Chandak
Amazing article lalit...