DEV Community

loading...
Mehul Lakhanpal profile picture

Mehul Lakhanpal

Javascript Developer | Learn daily at codedrops.tech | Micro Learning

Work

Full stack developer

Promise.race()

Promise.race()

Reactions 4 Comments 1
1 min read
Get current timestamp

Get current timestamp

Reactions 5
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
1 min read
Array.flat()

Array.flat()

Reactions 8
1 min read
Merge two arrays

Merge two arrays

Reactions 1
1 min read
Navigate between words

Navigate between words

Reactions 7
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
1 min read
Expand file editor in split mode

Expand file editor in split mode

Reactions 6
1 min read
Create a new branch and checkout immediately

Create a new branch and checkout immediately

Reactions 2
1 min read
Optional Chaining

Optional Chaining

Reactions 2
1 min read
Hoisting problems

Hoisting problems

Reactions 1
1 min read
Use an array as an iterable

Use an array as an iterable

Reactions 5
1 min read
MongoDB Import & Export commands

MongoDB Import & Export commands

Reactions 1
1 min read
Destructuring from nested object and array

Destructuring from nested object and array

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

.then() implicitly returns a promise

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

9 cool tips/tricks for Web Developers

Reactions 113 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 100 Comments 5
3 min read
10 JavaScript Array/Object Tricks

10 JavaScript Array/Object Tricks

Reactions 81
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
1 min read
Regex - Character Ranges

Regex - Character Ranges

Reactions 6
1 min read
Permanently assign `this` to a function

Permanently assign `this` to a function

Reactions 5
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
1 min read
What changes can be made with `const`

What changes can be made with `const`

Reactions 8 Comments 5
1 min read
New Number() is truthy or falsy?

New Number() is truthy or falsy?

Reactions 5 Comments 3
1 min read
Promise.resolve()

Promise.resolve()

Reactions 7
1 min read
Array.some()

Array.some()

Reactions 6
1 min read
Manipulating `this` using .call()

Manipulating `this` using .call()

Reactions 1
1 min read
Javascript - Truth and Lies

Javascript - Truth and Lies

Reactions 1
1 min read
Pretty format numbers

Pretty format numbers

Reactions 0
1 min read
Prevent an object's properties value from updating

Prevent an object's properties value from updating

Reactions 7 Comments 2
1 min read
Reverse a string in JS

Reverse a string in JS

Reactions 2
1 min read
Check if a value is an array

Check if a value is an array

Reactions 1 Comments 2
1 min read
Array.every()

Array.every()

Reactions 19 Comments 3
1 min read
What's the output?

What's the output?

Reactions 8 Comments 4
1 min read
String - trim()

String - trim()

Reactions 1
1 min read
Check if a string is Palindrome

Check if a string is Palindrome

Reactions 5
1 min read
Swap two numbers without using a temporary variable

Swap two numbers without using a temporary variable

Reactions 12 Comments 17
1 min read
Regex: Match Sets

Regex: Match Sets

Reactions 4
1 min read
Destructuring nested key

Destructuring nested key

Reactions 5
1 min read
Convert array to object using reduce()

Convert array to object using reduce()

Reactions 9 Comments 5
1 min read
Filter method in JS

Filter method in JS

Reactions 6
1 min read
Run a React app bootstrapped using cra on a different port

Run a React app bootstrapped using cra on a different port

Reactions 1 Comments 5
1 min read
Swap variables using destructuring

Swap variables using destructuring

Reactions 5
1 min read
Better way to accept arguments

Better way to accept arguments

Reactions 9
1 min read
Add Properties to functions

Add Properties to functions

Reactions 4 Comments 3
1 min read
Different number types

Different number types

Reactions 5
1 min read
Change array size using length property

Change array size using length property

Reactions 1
1 min read
Difference between double equal and triple equal

Difference between double equal and triple equal

Reactions 0
1 min read
Install a specific version of a package

Install a specific version of a package

Reactions 0
1 min read
Destructuring - renaming and default value

Destructuring - renaming and default value

Reactions 6
1 min read
Find sum of all the elements of an array using reduce()

Find sum of all the elements of an array using reduce()

Reactions 9
1 min read
Async function return promise by default

Async function return promise by default

Reactions 1
1 min read
Pass props using spread operator

Pass props using spread operator

Reactions 1
1 min read
Return an object/expression from arrow function

Return an object/expression from arrow function

Reactions 1
1 min read
loading...