---
title: "Mehul Lakhanpal (@ml318097) | Hashnode"
description: "Full-stack Developer. Read the latest articles by Mehul Lakhanpal on Hashnode."
url: "https://hashnode.com/@ml318097"
---

@ml318097

# Mehul Lakhanpal

@ml318097 · Bangalore, India · Joined May 2019

Full-stack Developer

[Website](https://www.codedrops.tech/)

### [Looking for collaborators for my next project](https://codedrops.hashnode.dev/looking-for-collaborators-for-my-next-project?utm_source=hashnode&utm_medium=feed)

Hi, I am Mehul, Senior Frontend Engineer at Toddle. I make side projects in my free time & do all the development, logo design, video editing, UI, marketing, etc all by myself. Some of my solo projects: Array Builder - A free tool to visualize the o...

1 min read · [codedrops.hashnode.dev](https://codedrops.hashnode.dev/looking-for-collaborators-for-my-next-project?utm_source=hashnode&utm_medium=feed)

[May 4, 2022](https://hashnode.com/posts/looking-for-collaborators-for-my-next-project/6272298b76abf01feb632d7c)

### [A new way to construct/debug Arrays](https://codedrops.hashnode.dev/a-new-way-to-constructdebug-arrays?utm_source=hashnode&utm_medium=feed)

A few days back while I was working I wrote a long block of code that made use of map, reduce & filter. Without testing I finished the code assuming it's gonna work but it broke. I had to console.log every operation to debug it. It was a minor issue,...

1 min read · [codedrops.hashnode.dev](https://codedrops.hashnode.dev/a-new-way-to-constructdebug-arrays?utm_source=hashnode&utm_medium=feed)

[May 1, 2022](https://hashnode.com/posts/a-new-way-to-constructdebug-arrays/626e3a06a2d355d4df43feff)

### [useToggle: Custom react hook for toggle](https://codedrops.hashnode.dev/usetoggle-custom-react-hook-for-toggle?utm_source=hashnode&utm_medium=feed)

// File: useToggle.js import { useState } from "react"; const useToggle = (initialState = false) => { const \[visible, setVisibility\] = useState(initialState); const toggle = () => setVisibility((prev) => !prev); const setToggleStatus = (valu...

1 min read · [codedrops.hashnode.dev](https://codedrops.hashnode.dev/usetoggle-custom-react-hook-for-toggle?utm_source=hashnode&utm_medium=feed)

[Jul 6, 2021](https://hashnode.com/posts/usetoggle-custom-react-hook-for-toggle/60e49b4c4aacd63048243c19)

### [Lodash: \_.isEmpty() - Check falsy values](https://codedrops.hashnode.dev/lodash-isempty-check-falsy-values?utm_source=hashnode&utm_medium=feed)

\_.isEmpty(): Matches undefined, null, false & empty arrays, obj, strings const \_ = require('lodash'); console.log( \_.isEmpty(undefined), \_.isEmpty(null), \_.isEmpty(false) \_.isEmpty(\[\]), \_.isEmpty({}), \_.isEmpty(""), ); // true x 6

1 min read · [codedrops.hashnode.dev](https://codedrops.hashnode.dev/lodash-isempty-check-falsy-values?utm_source=hashnode&utm_medium=feed)

[Jun 21, 2021](https://hashnode.com/posts/lodash-isempty-check-falsy-values/60d0bad4a6a3a25dadf61679)

### [Calling an async function without await](https://codedrops.hashnode.dev/calling-an-async-function-without-await?utm_source=hashnode&utm_medium=feed)

const asyncFunction = async () => "HELLO"; const main = async () => { const value = asyncFunction(); console.log(value === "HELLO" ? "true" : "false"); }; main(); Output: false asyncFunction() returns a promise not the resolved value.

1 min read · [codedrops.hashnode.dev](https://codedrops.hashnode.dev/calling-an-async-function-without-await?utm_source=hashnode&utm_medium=feed)

[Jun 15, 2021](https://hashnode.com/posts/calling-an-async-function-without-await/60c8b2aabbd8c506819af95d)
