rsnext/packages/next/lib/non-nullable.ts
Joe Haddad 260ab51974
temporary: re-flag font optimization (#20372)
There's currently two bugs with the font optimization, but we'd really like to ship a stable version.

To unblock the stable release, we're **temporarily** reflagging this. It'll be unflagged on canary again!
2020-12-21 19:26:00 +00:00

3 lines
117 B
TypeScript

export function nonNullable<T>(value: T): value is NonNullable<T> {
return value !== null && value !== undefined
}