MCPcopy
hub / github.com/angular/angular / removeEmptyProps

Method removeEmptyProps

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

Source from the content-addressed store, hash-verified

644 }
645
646 private removeEmptyProps(params: Params): Params {
647 return Object.entries(params).reduce((result: Params, [key, value]: [string, any]) => {
648 if (value !== null && value !== undefined) {
649 result[key] = value;
650 }
651 return result;
652 }, {});
653 }
654
655 private scheduleNavigation(
656 rawUrl: UrlTree,

Callers 1

createUrlTreeMethod · 0.95

Calls 2

reduceMethod · 0.80
entriesMethod · 0.45

Tested by

no test coverage detected