mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
When testing whether `value` is an object, use the ideal sequence of strictly not equal to `null` followed by `typeof value === 'object'` consistently. Specifically there's no point in using double equal with `null` since `undefined` is ruled out by the `typeof` check. Also avoid the unnecessary ToBoolean check on `value.ngOnDestroy` in `hasOnDestroy()`, since the `typeof value.ngOnDestroy === 'function'` will only let closures pass and all closures are truish (with the notable exception of `document.all`, but that shouldn't be relevant for the `ngOnDestroy` hook). PR Close #28400 |
||
|---|---|---|
| .. | ||
| element.ts | ||
| entrypoint.ts | ||
| errors.ts | ||
| index.ts | ||
| ng_content.ts | ||
| ng_module.ts | ||
| provider.ts | ||
| pure_expression.ts | ||
| query.ts | ||
| refs.ts | ||
| services.ts | ||
| text.ts | ||
| types.ts | ||
| util.ts | ||
| view.ts | ||
| view_attach.ts | ||