{"version":"1.0","type":"rich","title":"javascript arrays","description":"This example demonstrates how to manipulate JavaScript arrays, focusing on generating a range of numbers, filtering, mapping, and reducing, with sorting handled by comparing object keys. The visualization shows the process of creating an array using a custom `range` function and then sorting an array of entries alphabetically by their `key` property using a comparison function. The code uses built-in JavaScript array methods like `push`, `sort`, and `map`, and references the D3 library's `ascending` function for sorting. The output is logged to the console, showing the sorted entries.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/23b2f03a723448a095957765a7c51c61?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}