Robin (@Robin1935034) profile picture
Guwahati
Joined November 2023
Photo by Robin (@Robin1935034)Photo by Robin (@Robin1935034)Photo by Robin (@Robin1935034)Photo by Robin (@Robin1935034)Photo by Robin (@Robin1935034)Photo by Robin (@Robin1935034)
I spent 4+ hours studying how Zapier automates a billion tasks, so you don't have to. Here's a summary of what I learned:
4
7
36
6,347
Leaning Thread: About slice method in JavaScript: The slice() method is a built-in JavaScript function that returns a shallow copy of a portion of an array into a new array object.
1
3
132
#4 The end parameter is the zero-based index at which to end extraction. slice() extracts up to but not including end. If negative, it counts back from the end of the array.
1
2
69
#5 The slice() method returns a new array containing the extracted elements. It does not modify the original array.
2
61
🧵 Let’s talk about two powerful array methods in JavaScript: array.find() and array.filter(). They’re both used to search through an array, but they have different use cases and return different results. Let’s dive in! 👇
1
2
84
In filter(), the whole array is iterated despite the fact that the element being searched for is present at the beginning. But in find(), as soon as the element that satisfies the condition is found, it gets returned.
1
1
28
Use Cases: When you have a use case where more than 1 element is expected to be returned then you can use the filter() method. But if you expect only a single element to be returned from the array, then you can use find() and avoid extra iterations.
1
25
#4 The searchParams object is an instance of the URLSearchParams class, which provides methods to work with the query string of a URL
1
1
33
#5 You can use various methods provided by the URLSearchParams class to work with this data, such as get(), getAll(), has(), set(), delete(), and more.
26
Learning thread: #1 Just learned about useSearchParams in react-router-dom today! It’s a hook used to read and modify the query string in the URL for the current location. #React #JavaScript #WebDevelopment
2
2
82
#3 Just like React’s useState hook, setSearchParams also supports functional updates. This means you can provide a function that takes the current state and returns an updated version. #React #JavaScript #WebDevelopment
1
1
20
#2 searchParams is an object that contains the current location’s search parameters, and setSearchParams is a function that can be used to update them. #React #JavaScript #WebDevelopment
1
19
Everyone should adopt the 2 simple rules to live life: 1. Go jim. 2. Know something in your domain that you weren't aware of yesterday, no matter how big or small.
Your competition is that guy who chooses to code outside of work - religiously - for 2 hours everyday, no matter what. No matter how tired or bored or uninterested he is. You can't do that by simply asking strangers on the internet for advice on "the best way" to do things.
3
14
220
15,887
Be the best version of yourself: Wake up! Grind bad enough to mentally and physically exhaust yourself completely. Hit the bed and your body would thank you by sleeping within seconds. Let's go!
8
15
1
446
15,896
what are your opinion on yarn vs npm ?
1
3
149