{"version":"1.0","type":"rich","title":"JavaScript Arrays","description":"This example demonstrates fundamental JavaScript array operations for data manipulation, including range generation, filtering, mapping, reducing, and sorting. The code creates an array of numbers 0 through 9 using a custom range function, then explores various array methods with commented-out examples. It also shows sorting an array of objects by a key property using D3's `ascending` comparator, and includes commented examples of reduce to transform entries into an object. The example highlights how D3 version 6.6.2 provides utility functions that integrate with native JavaScript array methods.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/a72c0043c8244cff9db835e6f6d8327d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}