Performance improvements and type checking of additional properties of DOM nodes make the new Vue worth updating. The Vue team has really done a lot of work. In fact, they released two sub-versions on the same day. Vue 3.3.5 and 3.3.6 are both released on October 20, 2023. WeakMaps One of the improvements was the […]
Tag: weakmap
WeakMap and WeakSet in ES6: Features and Purpose
Jiangcheng Cheerful Pea: Personal homepage Personal column :《VUE》《javaScript》 The ideal of life is for an ideal life! Table of Contents 1. Overview of WeakMap and WeakSet 1.1 WeakMap 1.2 WeakSet 2. In-depth analysis of WeakMap 2.1 Creation and use of WeakMap 2.2 WeakMap and memory management 2.3 WeakMap and object private data 3. In-depth analysis […]
Set, WeakSet, Map, WeakMap data structures in ES6
Set Set itself is a constructor, used to generate a Set data structure, similar to an array Array, but the values of the members are unique and there are no duplicate values. Attribute methods size: Returns the total number of members of the set instance add(value): Add a value and return the Set itself delete(value): […]
In-depth analysis: the difference between Set, Map, WeakSet and WeakMap
Article directory 1. Set (collection) 2. Map 3. WeakSet (weak reference collection) 4. WeakMap (weak reference mapping) Appendix: “Resume Essentials” front-end and back-end practical projects (recommended: ) “Introduction to the Author”: Unknown 18-line technology blogger [ai_todo] “Recommended homepage”: Miss Frontend [Ashan and her cat] “Recommended Column”: “Getting Started with React from 0 to 0.01” “resume […]
Map, WeakMap, Set, WeakSet (JS implementation)
Personal homepage: Love to eat Xuanmai Series of Columns: JavaScript ? Motto: The road is long and difficult, but the journey is approaching Article directory Map key Other ways to create maps Common methods of Map Map traversal The difference between Map and Object Set Set common methods Set traversal Set other functions WeakMap Common […]
The difference between Set, Map, WeakSet and WeakMap in es6
Set Set is similar to an array. It is a constructor and is used to generate a Set data structure. The member values are unique and unordered, and are often used for deduplication of arrays. Set function can accept an array (or other data structure with iterable interface) as a parameter to initialize Set data […]