May 2019
Beginner to intermediate
650 pages
14h 50m
English
The d3-collection module contains functions for creating maps and sets, manipulating the data stored in them, and extracting properties from objects. These functions were created before ES6 (ES2015) was widely supported, but are no longer necessary. You might still find them in older D3 code or in code that contains functions that use these structures. In a few cases, there is no difference between using a D3 function or an ES6 function, but if you are creating new code, you should use the ES6 standards whenever possible, since D3 sets and maps are not iterable and don't work with operators that assume iterable collections (such as spread operator).
The following table compares standard ES2015 functions ...
Read now
Unlock full access