mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-05-18 11:46:56 +00:00
5 lines
223 B
TypeScript
5 lines
223 B
TypeScript
// we are using {} as "any non-nullish value" as expected
|
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
export function isNotNull<T extends {}>(input: T | undefined | null): input is T {
|
|
return input != null;
|
|
}
|