{"version":"1.0","type":"rich","title":"objects and arrays","description":"This example demonstrates how to combine two arrays of objects by matching a common property and then logs the results to the console. It also shows how to find and print the intersection of two simple arrays. The code uses plain JavaScript with `forEach` loops to compare object fields (`name` against `state`) and array elements, assigning a new `id` property to the first array. No D3 visualization is rendered; the example focuses purely on data manipulation and console output.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-54ccefbf50ea7d45179a16a2941101fd?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}