DEV Community

loading...
Mehul Lakhanpal profile picture

Mehul Lakhanpal

Full stack Developer | Micro-blogging on Web Development at codedrops.tech | Creator of File Ops, Note Box, GitHub Marker

Work

Full stack developer

useToggle: Custom react hook for toggle

useToggle: Custom react hook for toggle

Reactions 4 Comments 2
1 min read
Lodash: _.isEmpty() - Check falsy values

Lodash: _.isEmpty() - Check falsy values

Reactions 4 Comments
1 min read
Calling an async function without await

Calling an async function without await

Reactions 2 Comments
1 min read
Popular case types in programming

Popular case types in programming

Comments
1 min read
Implement custom '.pick()' for objects

Implement custom '.pick()' for objects

Reactions 5 Comments
1 min read
Custom util to get weekday name or number

Custom util to get weekday name or number

Reactions 5 Comments 2
1 min read
Git: Change author name & email for last commit

Git: Change author name & email for last commit

Reactions 5 Comments
1 min read
Mongo DB: Update data using `.forEach()`

Mongo DB: Update data using `.forEach()`

Comments
1 min read
Custom util to call functions `n` times

Custom util to call functions `n` times

Reactions 2 Comments
1 min read
Pretty format number using '.toLocaleString()'

Pretty format number using '.toLocaleString()'

Reactions 4 Comments
1 min read
React: Create an 'EmptyState' component

React: Create an 'EmptyState' component

Reactions 4 Comments
1 min read
Delete property from an object

Delete property from an object

Reactions 2 Comments
1 min read
Infinitely loop over an array

Infinitely loop over an array

Reactions 4 Comments
1 min read
4 ways to check if arrays are equal

4 ways to check if arrays are equal

Reactions 16 Comments 1
1 min read
Filter out `falsy` values

Filter out `falsy` values

Reactions 3 Comments 1
1 min read
CSS: Hide scrollbar

CSS: Hide scrollbar

Reactions 6 Comments
1 min read
CSS class to add margin for all child elements

CSS class to add margin for all child elements

Reactions 5 Comments 4
1 min read
A single function to add, update, read & delete from an array

A single function to add, update, read & delete from an array

Reactions 7 Comments 3
1 min read
Destructuring nested object

Destructuring nested object

Reactions 7 Comments 2
1 min read
Multiline flag in regex

Multiline flag in regex

Reactions 5 Comments
1 min read
File Ops - A VS Code extension to easily tag/alias files & quick switch between files

File Ops - A VS Code extension to easily tag/alias files & quick switch between files

Reactions 5 Comments 2
1 min read
Find the largest & smallest number

Find the largest & smallest number

Reactions 5 Comments
1 min read
Get character code (ASCII code)

Get character code (ASCII code)

Reactions 6 Comments
1 min read
Implementing custom `isFalsy()`

Implementing custom `isFalsy()`

Reactions 6 Comments
1 min read
🎉 Product Launch - "Note Box" Chrome Extension 🎉

🎉 Product Launch - "Note Box" Chrome Extension 🎉

Reactions 6 Comments 2
1 min read
Deep Cloning (JSON.parse + JSON.stringify)

Deep Cloning (JSON.parse + JSON.stringify)

Reactions 4 Comments
1 min read
What's the output?

What's the output?

Reactions 3 Comments 6
1 min read
Open a new tab dynamically

Open a new tab dynamically

Reactions 2 Comments
1 min read
Shorthand for `npm install`

Shorthand for `npm install`

Reactions 1 Comments 1
1 min read
Initialize package.json with default values

Initialize package.json with default values

Reactions 3 Comments
1 min read
Async..await is syntactic sugar on Promises

Async..await is syntactic sugar on Promises

Reactions 3 Comments
1 min read
Destructuring `array`

Destructuring `array`

Reactions 6 Comments 2
1 min read
Promise.race()

Promise.race()

Reactions 4 Comments 1
1 min read
Get current timestamp

Get current timestamp

Reactions 4 Comments
1 min read
Prevent an object key from appearing in `Object.keys()` or `for..in` loop

Prevent an object key from appearing in `Object.keys()` or `for..in` loop

Reactions 6 Comments
1 min read
Array.flat()

Array.flat()

Reactions 8 Comments
1 min read
Merge two arrays

Merge two arrays

Reactions 1 Comments
1 min read
Navigate between words

Navigate between words

Reactions 7 Comments
1 min read
Pretty print using JSON.stringify()

Pretty print using JSON.stringify()

Reactions 11 Comments 3
1 min read
Promise.reject()

Promise.reject()

Reactions 7 Comments
1 min read
Expand file editor in split mode

Expand file editor in split mode

Reactions 7 Comments
1 min read
Create a new branch and checkout immediately

Create a new branch and checkout immediately

Reactions 2 Comments
1 min read
Optional Chaining

Optional Chaining

Reactions 2 Comments
1 min read
Hoisting problems

Hoisting problems

Reactions 1 Comments
1 min read
Use an array as an iterable

Use an array as an iterable

Reactions 5 Comments
1 min read
MongoDB Import & Export commands

MongoDB Import & Export commands

Reactions 1 Comments
1 min read
Destructuring from nested object and array

Destructuring from nested object and array

Reactions 6 Comments
1 min read
.then() implicitly returns a promise

.then() implicitly returns a promise

Reactions 1 Comments
1 min read
9 cool tips/tricks for Web Developers

9 cool tips/tricks for Web Developers

Reactions 111 Comments 7
2 min read
9 Simple logical questions for JavaScript beginner's

9 Simple logical questions for JavaScript beginner's

Reactions 43 Comments 2
2 min read
18 tips/tricks for Junior JavaScript Developer

18 tips/tricks for Junior JavaScript Developer

Reactions 104 Comments 5
3 min read
10 JavaScript Array/Object Tricks

10 JavaScript Array/Object Tricks

Reactions 83 Comments
2 min read
10 JavaScript Interview Questions

10 JavaScript Interview Questions

Reactions 144 Comments 8
3 min read
What's the order of execution?

What's the order of execution?

Reactions 1 Comments
1 min read
Regex - Character Ranges

Regex - Character Ranges

Reactions 8 Comments
1 min read
Permanently assign `this` to a function

Permanently assign `this` to a function

Reactions 5 Comments
1 min read
Object keys are stored in insertion order

Object keys are stored in insertion order

Reactions 1 Comments 1
1 min read
JS: Maps can store any type of key

JS: Maps can store any type of key

Reactions 6 Comments 2
1 min read
try..catch..finally - Real example

try..catch..finally - Real example

Reactions 14 Comments 4
1 min read
String.Repeat()

String.Repeat()

Reactions 1 Comments
1 min read
loading...