Tag Archives: WeakMap

WeakMap in JavaScript – An Simple Introduction

WeakMap in JavaScript – An Simple Introduction Desk of Contents A quick introduction to WeakMap Differences between Maps and WeakMaps How to create WeakMaps WeakMap methods Adding elements Retrieving values Removing elements Checking for existing keys Potential use cases for WeakMaps Conclusion: WeakMap in JavaScript – An easy introduction WeakMap is without doubt one of…

Read More

ES6, ES7, ES8 & Writing Fashionable JavaScript Pt5 – WeakMap, WeakSet and Export & Import

ES6, ES7, ES8 & Writing Fashionable JavaScript Pt5 – WeakMap, WeakSet and Export & Import Desk of Contents WeakMap and WeakSet WeakMap WeakSet The differences between Map & WeakMap and Set & WeakSet Export, import and modules The import statement The export statement Dynamic imports Epilogue: ES6, ES7, ES8 & Writing Modern JavaScript Pt5 ES6…

Read More