고라니드로koranidro.hashnode.dev·Aug 24, 2024[TypeScript] 메타데이터 관리하기(with. WeakMap)특정 객체의 메타데이터를 관리하는 방법으로 Map을 떠올리는 것은 그렇게 어렵지 않을 것입니다. 객체를 키로, 메타데이터를 값으로 취급하면 쉽게 구현할 수 있을 것 같습니다. 하지만, 이 방법이 항상 사용할 수 있는 것은 아닙니다. 메타데이터의 생명 주기를 객체와 동일하게 유지하고 싶다고 합시다. 객체가 폐기되는 시점을 알아야 하겠지요? 그런데 이 시점이 가비지 수집 시점이라면 어떻게 하나요? 이러한 문제의 해결책 중 하나는 WeakMap을 사...DiscussTypeScript
Narayana M V Lblog.macrofiy.com·Dec 9, 2023ES14: A Game Changer for JavaScript DevelopmentThe latest version of JavaScript, ECMAScript 2023 (ES14), brings a range of new features and improvements to the language. Let's explore some of the most notable additions: 1. New Array Methods ES14 introduces several new methods for working with arr...DiscussES14
Luca Del Puppoblog.delpuppo.net·Sep 27, 2023Unlocking JavaScript's Secret Weapon: The Power of WeakMapsIntroduction JavaScript is a powerful and versatile programming language that has evolved over the years, introducing new features and improvements to enhance its performance and capabilities. One such feature is the WeakMap, a collection of key-valu...Discuss·195 readsThe JavaScript you don't knowJavaScript
Ajayajay020.hashnode.dev·May 3, 2023Understanding the Differences Between Map and WeakMap in JavaScriptIntroduction In JavaScript, Map and WeakMap are data structures that allow us to store and retrieve data more efficiently. Map and Weakmap are a collection of <key,value> pairs. In this article, we will explore the difference between these two data s...Discuss·69 readsmap
Nikhil Kumar Patranikhilkumarpatra47.hashnode.dev·Oct 2, 2022WeakMap in JavascriptIntroduction Now that we have understood the concept of garbage collection and memory management in Javascript in the last blog I published, it is time to look at the two new data structures - weakMap and weakSet. weakMap weakMap is analogous to Map...Discussweakmap
Syed Jafer Ksyedjaferk.hashnode.dev·Sep 19, 2022WeakMap & WeakSet in JavascriptGarbage Collection Javascript garbage collection is a form of memory management whereby objects that are no longer referenced are automatically deleted and their resources are reclaimed (like cascade delete.) Weak Collections Map and Set's reference...Discuss·155 readsCourse: Learn Javascript With Usjs