Skip to content

Commit cc115d5

Browse files
committed
fix(facade/lang): use strict equality for performance
1 parent 2ab526e commit cc115d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/facade/src/lang.es6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ export class IMPLEMENTS {}
1212

1313

1414
export function isPresent(obj):boolean {
15-
return obj != undefined && obj != null;
15+
return obj !== undefined && obj !== null;
1616
}
1717

1818
export function isBlank(obj):boolean {
19-
return obj == undefined || obj == null;
19+
return obj === undefined || obj === null;
2020
}
2121

2222
export function stringify(token):string {

0 commit comments

Comments
 (0)