{"version":"1.0","type":"rich","title":"poor man's dom selection","description":"This example demonstrates a lightweight DOM selection utility that queries elements and normalizes the result into an array. It shows how `querySelectorAll` returns a `NodeList`, which the code converts using `[].slice.call` when multiple matches exist, while preserving a single element as-is. The `find` function accepts an optional scope parameter to limit the search, defaulting to the global `document`. This plain JavaScript approach avoids external libraries, offering a simple alternative to jQuery-style selectors for projects that need minimal dependency overhead.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-163e972a4f80b98bc4f9?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}