Doesn't matter. We love you for your deep heart and knowledge.
Posts by Elvin Huseynov
πβ¨ Happy New Year! ππ₯ Wishing you an incredible 2025 filled with success, joy, and exciting opportunities! ππ Letβs make the future unforgettable! π₯³π #HappyNewYear #Welcome2025 #NewYearEve
If the array included 0, Number would exclude it as falsy, but Number.isInteger would include it since it explicitly checks for integers. The confusion arises because 0 is falsy in JavaScript, and filter(Number) removes falsy values, while Number.isInteger focuses on integers only.
A clean way to filter values in #JavaScript is by using the #filter method. To filter numbers as #strings, pass #Number to filter. For #integers, use #Number.isInteger. Similarly, use #String for strings or #Boolean for truthy values. This approach is concise and versatile.
#Γ§ikidounz #javascriptβ’
#JavaScript evolves, but older browsers may lack support for new features. Polyfills bridge this gap by adding missing implementations. Below is a polyfill for the map() method, allowing you to use it in unsupported browsers just like the native map().
#javascript #polyfill #ownvariant
Goodbye X
Hereβs a debounce function you can use like Lodash!
β οΈ Avoid using it with React's input value prop on change events, as it may freeze updates.
π Use Case: Delay API requests on change events.
Got questions? Drop a comment below!
#typescript #react #debounce
Advanced React book is on sale with a 30% discount until the end of the calendar year!
There is also a secret way to turn it into 50% for those who pay attention to details on the website π
www.advanced-react.com
What a perfect day! Nadia (@adevnadia.bsky.social) is here with us on #Bluesky! "Advanced React" is an excellent book for a deep dive. I'm still re-reading it and refreshing my knowledge.
Destructuring in #JavaScript is powerful, but #array destructuring like const [, price] = data can be less clean and harder to maintain due to skipped indexes.
Instead, use object destructuring with specific array indexes on the right-hand side for better readability, clarity, and maintainability.
We can use JavaScript's Proxy along with the Reflect API to intercept or abstract an object, allowing us to hide its implementation details. πͺβ¨
#javascript #object #proxy
π Algorithms & Data Structures
- Intro to Algorithms β Cormen, Leiserson, Rivest, and Stein
- Cracking the Coding Interview β Gayle Laakmann McDowell
π Software Architecture
- Designing Data-Intensive Apps β Martin Kleppmann
- System Design Interview
π Design Patterns
- Design Patterns β Eric Gamma et al
- Domain-Driven Design β Eric Evans
by ByteByteGo
Top 10 Books for Software Developers
π General Advice
- The Pragmatic Programmer β Andrew Hunt & David Thomas
- Code Complete β Steve McConnell
π Coding
- Clean Code β Robert C. Martin
- Refactoring β Martin Fowler
othrers are in comment...
#books #development #developers
Hereβs a simple, clean, and non-mutating function to delete a key from an object and return a new object.
#javascript #object #omit
JavaScript Tip π‘
Instead of chaining promises, use Promise.all or Promise.allSettled to resolve them concurrently. For example, two 1-second promises will resolve in ~1s with Promise.all instead of 2s. While these methods simplify concurrent handling, always weigh the trade-offs before using them.
Done
In #JavaScript, you can use the Object.freeze() and Object.seal() methods to make an object immutable or restrict its modifications. Using immutable objects can help make your programs more predictable, reliable, and less prone to bugs.
With Object.freeze():
1. Adding new properties: Not allowed β
2. Deleting existing properties: Not allowed β
3. Updating property values: Not allowed β
With Object.seal():
1. Adding new properties: Not allowed β
2. Deleting existing properties: Not allowed β
2. Updating property values: Allowed β
The download link has not been sent so far. I have tried with multiple emails.
Experienced. Lived. Tasted
Did you know that in #JavaScript, you can use the spread syntax to see what an emoji is made of? β¨
#javascript #typescript #webdevelopment #webdev
Are you ready for an advanced #JavaScript question? Guess in the comments what the output of this code is. π
#javascript #coding #programming
Looking delicious π
Keep β¬οΈ or share π these 10 time wasters
These are 10 Time Wasters. Keep away from them:
Wow, even hashes are the same