Skip to main content
variable arrayToHtmlList
import { arrayToHtmlList } from "https://deno.land/x/30_seconds_of_typescript@v1.0.1/util.ts";

Converts the given array elements into <li> tags and appends them to the list of the given id. Use Array.prototype.map(), document.querySelector(), and an anonymous inner closure to create a list of html tags.

type

(arr: (string | number)[], listID: string) => unknown