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

Function stringify

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

Source from the content-addressed store, hash-verified

564}
565
566function stringify(params: {[key: string]: any}): {[key: string]: string} {
567 const res: {[key: string]: string} = {};
568 Object.entries(params).forEach(([k, v]) => (res[k] = `${v}`));
569 return res;
570}
571
572function compare(path: string, params: {[key: string]: any}, segment: UrlSegment): boolean {
573 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