MCPcopy Create free account
hub / github.com/openai/plugins / renderOptionalList

Function renderOptionalList

plugins/plugin-eval/src/renderers/html.js:16–18  ·  view source on GitHub ↗
(items, emptyLabel = "None.")

Source from the content-addressed store, hash-verified

14}
15
16function renderOptionalList(items, emptyLabel = "None.") {
17 return renderList(Array.isArray(items) && items.length > 0 ? items : [emptyLabel]);
18}
19
20function renderChecks(checks) {
21 if (checks.length === 0) {

Callers 1

renderHtmlFunction · 0.85

Calls 1

renderListFunction · 0.85

Tested by

no test coverage detected