{"version":"1.0","type":"rich","title":"HIGHER ORDER FUNCTIONS - JavaScript","description":"This example demonstrates higher-order array methods in JavaScript using sample datasets of orders and animals. It shows how `map` transforms an array into a new array of the same size, `filter` keeps only elements matching a true condition, and `reduce` accumulates values from an array into a single result. The code defines an orders array with amount properties and an animals array with name and type properties, then illustrates each method with commented-out examples that log transformed results to the console.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-befb667b32bd0b27fc0f?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}