* Adds an HTML list to the summary buffer * * @param {string[]} items list of items to render * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false) * * @returns {Summary} summary instance
(items, ordered = false)
| 19687 | if (!url || typeof url !== "string" && typeof url !== "object" && !(url instanceof URL)) { |
| 19688 | throw new InvalidArgumentError("invalid url"); |
| 19689 | } |
| 19690 | if (opts != null && typeof opts !== "object") { |
| 19691 | throw new InvalidArgumentError("invalid opts"); |
| 19692 | } |
| 19693 | if (opts && opts.path != null) { |
| 19694 | if (typeof opts.path !== "string") { |
| 19695 | throw new InvalidArgumentError("invalid opts.path"); |
| 19696 | } |
| 19697 | let path4 = opts.path; |