MCPcopy Create free account
hub / github.com/denoland/std / serializeList

Function serializeList

http/unstable_structured_fields.ts:1160–1172  ·  view source on GitHub ↗
(list: List)

Source from the content-addressed store, hash-verified

1158 * ```
1159 */
1160export function serializeList(list: List): string {
1161 const parts: string[] = [];
1162
1163 for (const member of list) {
1164 if ("items" in member) {
1165 parts.push(serializeInnerList(member));
1166 } else {
1167 parts.push(serializeItemInternal(member));
1168 }
1169 }
1170
1171 return parts.join(", ");
1172}
1173
1174/**
1175 * Serializes a Dictionary to a string.

Callers 5

resolveDictionaryMemberFunction · 0.90
resolveBinaryWrappedFunction · 0.90
fnFunction · 0.90
runConformanceTestsFunction · 0.90

Calls 3

serializeInnerListFunction · 0.85
serializeItemInternalFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected