{"version":"1.0","type":"rich","title":"JavaScript Arrays 1","description":"This example demonstrates fundamental JavaScript array operations using D3’s `ascending` comparator within a React project. It shows a custom `range` function that generates sequential numbers, then maps and reduces an array of key-value entries into an object, and finally sorts the entries alphabetically by their keys. The code logs results to the console, illustrating how to manipulate and transform arrays with native methods like `forEach`, `map`, `reduce`, and `sort`, all within a minimal HTML page.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/3e262cbb2d524a058ccdc46fc6a94f13?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}