{"version":"1.0","type":"rich","title":"JavaScript Arrays","description":"This example demonstrates JavaScript array manipulation methods using D3.js version 6. The code defines a custom `range` function to create a numeric array and then explores `forEach`, `filter`, `map`, `reduce`, and sorting operations on it. It also shows how to sort an array of objects by a key using a custom comparator, alongside D3’s `ascending` helper. All code is written in plain JavaScript with logging to the console; there is no visual output or rendering, focusing purely on illustrating array programming concepts.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/f28c109842f6473fbd69df3e8487055c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}