mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
fix(facade/lang): use strict equality for performance
This commit is contained in:
parent
2ab526e88b
commit
cc115d58ca
1 changed files with 2 additions and 2 deletions
|
|
@ -12,11 +12,11 @@ export class IMPLEMENTS {}
|
|||
|
||||
|
||||
export function isPresent(obj):boolean {
|
||||
return obj != undefined && obj != null;
|
||||
return obj !== undefined && obj !== null;
|
||||
}
|
||||
|
||||
export function isBlank(obj):boolean {
|
||||
return obj == undefined || obj == null;
|
||||
return obj === undefined || obj === null;
|
||||
}
|
||||
|
||||
export function stringify(token):string {
|
||||
|
|
|
|||
Loading…
Reference in a new issue