---
title: "Lalit Sheoran (@lalitsheoran) | Hashnode"
description: "Software Engineer aka newbie for life 🌱. Read the latest articles by Lalit Sheoran on Hashnode."
url: "https://hashnode.com/@lalitsheoran"
---

@lalitsheoran

# Lalit Sheoran

@lalitsheoran · Joined December 2020

Software Engineer aka newbie for life 🌱

### [Convert undefined keys to null using array.reduce()](https://blog.lalitsheoran.com/convert-undefined-keys-to-null-using-arrayreduce?utm_source=hashnode&utm_medium=feed)

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.com](https://blog.lalitsheoran.com/convert-undefined-keys-to-null-using-arrayreduce?utm_source=hashnode&utm_medium=feed)

[4](https://hashnode.com/posts/convert-undefined-keys-to-null-using-arrayreduce/5fcbad862e4db7780e4839a9) [Dec 5, 2020](https://hashnode.com/posts/convert-undefined-keys-to-null-using-arrayreduce/5fcbad862e4db7780e4839a9)
