MCPcopy Create free account
hub / github.com/angular/angular / serializeMatrixParams

Function serializeMatrixParams

packages/router/src/url_tree.ts:629–633  ·  view source on GitHub ↗
(params: {[key: string]: string})

Source from the content-addressed store, hash-verified

627}
628
629function serializeMatrixParams(params: {[key: string]: string}): string {
630 return Object.entries(params)
631 .map(([key, value]) => `;${encodeUriSegment(key)}=${encodeUriSegment(value)}`)
632 .join('');
633}
634
635function serializeQueryParams(params: {[key: string]: any}): string {
636 const strParams: string[] = Object.entries(params)

Callers 1

serializePathFunction · 0.85

Calls 4

mapMethod · 0.80
encodeUriSegmentFunction · 0.70
joinMethod · 0.65
entriesMethod · 0.45

Tested by

no test coverage detected