Files
TheGame/packages/utils/src/arrayHelpers.ts
Hammad Jutt e8f1a1628d Update TS, setup SourceCred SDK, and add helpers to utils (#107)
* Update TS version and setup SourceCred API in backend

* Fix typeError in Player.tsx

* Update yarn.lock

* Update yarn.lock and fix type errors
2020-09-06 18:50:22 -06:00

4 lines
117 B
TypeScript

export function isNotNullOrUndefined<T>(x: T | undefined | null): x is T {
return x !== undefined && x !== null;
}