{"version":"1.0","type":"rich","title":"JavaScript Arrays","description":"This example explores JavaScript array methods using D3’s `ascending` and custom functions. It defines a `range` generator to create an array and demonstrates commented-out operations like `forEach`, `sort`, `map`, and `reduce`. The active code sorts an array of objects by their `key` property using `entries.sort((a,b) => ascending(a.key, b.key))`, logging the reordered result. No visual output is rendered; the focus is on console-based array manipulation with array methods and D3’s comparator.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/08080913f54b4eed8c46e0c2a588d496?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}