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

Method removeEmptyProps

packages/router/src/router.ts:656–663  ·  view source on GitHub ↗
(params: Params)

Source from the content-addressed store, hash-verified

654 }
655
656 private removeEmptyProps(params: Params): Params {
657 return Object.entries(params).reduce((result: Params, [key, value]: [string, any]) => {
658 if (value !== null && value !== undefined) {
659 result[key] = value;
660 }
661 return result;
662 }, {});
663 }
664
665 private scheduleNavigation(
666 rawUrl: UrlTree,

Callers 1

createUrlTreeMethod · 0.95

Calls 2

reduceMethod · 0.80
entriesMethod · 0.45

Tested by

no test coverage detected