Convert undefined keys to null using array.reduce()
Dec 5, 2020 ยท 2 min read ยท 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...
MDMRMukund and 3 more commented