Files
Signal-Desktop/ts/types/SchemaVersion.ts
2021-09-23 17:49:05 -07:00

9 lines
230 B
TypeScript

// Copyright 2018-2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { isNumber } from 'lodash';
export const isValid = (value: unknown): boolean => {
return Boolean(isNumber(value) && value >= 0);
};