Files
Desktop/ts/types/SchemaVersion.std.ts
T
2026-04-02 16:30:34 -07:00

11 lines
248 B
TypeScript

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