angular/packages/common/src
arturovt edb8407d4f refactor(common): simplify null/undefined check in keyvalue pipe (#59696)
In this commit, we remove the separate `a === undefined` and `a === null` checks and replace them with `a == null`. Using `a == null` is better and more concise because it checks for both `null` and `undefined` in a single operation. The loose equality `==` is specifically designed to treat `null` and `undefined` as equivalent. This change only reduces some bytes in the code and simplifies it, with no performance impact, as modern JavaScript engines handle `a == null` efficiently. Additionally, comments have been added for clarification.

PR Close #59696
2025-01-24 12:45:04 +01:00
..
directives docs: update class & style binding recommendation (#59240) 2025-01-15 12:27:12 -05:00
i18n refactor(common): drop enums by changing to const enum (#59468) 2025-01-13 11:14:27 -05:00
location refactor(docs-infra): convert code-example-s that have only region param to @example-s (#59004) 2024-12-04 18:05:59 +01:00
navigation refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
pipes refactor(common): simplify null/undefined check in keyvalue pipe (#59696) 2025-01-24 12:45:04 +01:00
common.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
common_module.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
cookie.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
dom_adapter.ts refactor: remove unnecessary TSLint rule flags (#59365) 2025-01-07 16:06:21 +00:00
dom_tokens.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
errors.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
platform_id.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
private_export.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
version.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
viewport_scroller.ts refactor(common): drop NullViewportScroller for client bundles (#59440) 2025-01-09 12:33:04 -05:00
xhr.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00