{"version":"1.0","type":"rich","title":"Gist 7d1bfcb2a1441b61dd73812b26b0f3f1","description":"This example demonstrates a recursive array-flattening utility called `flatty`, which reduces a nested list structure into a single flat array. The function iterates through each item, checking whether it is an array; if so, it recursively applies itself, otherwise it appends the item directly. It uses the native `Array.reduce` and `Array.concat` methods to combine results, with no external libraries. The code is presented as a standalone JavaScript snippet, showing a pure function that takes a list and returns a flattened version without side effects.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-7d1bfcb2a1441b61dd73812b26b0f3f1?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}