mirror of
https://github.com/bitwarden/browser
synced 2026-02-05 19:23:19 +00:00
[PM-22789] Refactor stringIsNotUndefinedNullAndEmpty() function
This commit is contained in:
@@ -104,5 +104,5 @@ export function cleanUserAgent(userAgent: string): string {
|
||||
* Otherwise, returns `false`.
|
||||
*/
|
||||
export function stringIsNotUndefinedNullAndEmpty(str: string): boolean {
|
||||
return str != undefined && str != null && str.length > 0;
|
||||
return str?.length > 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user