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

Function stringify

packages/router/src/create_url_tree.ts:563–567  ·  view source on GitHub ↗
(params: {[key: string]: any})

Source from the content-addressed store, hash-verified

561}
562
563function stringify(params: {[key: string]: any}): {[key: string]: string} {
564 const res: {[key: string]: string} = {};
565 Object.entries(params).forEach(([k, v]) => (res[k] = `${v}`));
566 return res;
567}
568
569function compare(path: string, params: {[key: string]: any}, segment: UrlSegment): boolean {
570 return path == segment.path && shallowEqual(params, segment.parameters);

Callers 1

createNewSegmentGroupFunction · 0.70

Calls 2

forEachMethod · 0.45
entriesMethod · 0.45

Tested by

no test coverage detected