JavaScript-Collection-List
JavaScript Collection List
Indexed Collection
- 2017-Faster Collection Iterators:ECMAScript 2015 中引入了 Map 与 Set 等常用的集合,这些集合同样实现了迭代器的特性,因此也就允许我们使用
for-of
或者扩展操作符来迭代操作这些集合。不过在很多的评测中这些新引入的集合的迭代遍历性能并不是很好,本文则详细介绍了引擎中导致 Set 等集合迭代性能较差的原因,并且给出了解决方案与未来的实现规划。
Array
-
2017-JavaScript 数组所有 API 全解密:系统讲解了 JavaScript 数组的各种特性和 API。
-
How JavaScript’s Reduce method works, when to use it, and some of the cool things it can do
Set
Keyed Collection
Object
Map
-
What You Should Know About ES6 Maps: JavaScript ES6 introduces a new data structure, called maps. Maps are designed as an alternative to using Object literals for storing key/value pairs that require unique keys, and provide very useful methods for iteration.
-
What You Should Know About ES6 Maps: JavaScript ES6 introduces a new data structure, called maps. Maps are designed as an alternative to using Object literals for storing key/value pairs that require unique keys, and provide very useful methods for iteration.
DataView
- A cartoon intro to ArrayBuffers and SharedArrayBuffers: In the last article, I explained how memory-managed languages like JavaScript work with memory. I also explained how manual memory management works in languages like C.