mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Refresh profiles on app start (at most every 12 hours)
This commit is contained in:
8
ts/util/isNormalNumber.ts
Normal file
8
ts/util/isNormalNumber.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
export function isNormalNumber(value: unknown): value is number {
|
||||
return (
|
||||
typeof value === 'number' && !Number.isNaN(value) && Number.isFinite(value)
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user