{"version":"1.0","type":"rich","title":"JavaScript Arrays","description":"This example demonstrates fundamental JavaScript array operations, including mapping, reducing, and sorting, using a custom `range` function and a collection of key-value objects. The code logs a sorted version of the entries array to the console, ordering objects by their `key` property in ascending alphabetical order. It also includes commented-out examples of `map`, `reduce`, and object construction, showcasing how to transform data and aggregate values. The example relies on native JavaScript array methods and imports `ascending` from the D3 library (v7.8.5), though the primary operations use built-in functionality rather than D3-specific utilities.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/108c119147184f0fb7bb11e6d002f438?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}