cal.pub0.org/packages/lib/array.ts

2 lines
79 B
TypeScript

export const notUndefined = <T>(val: T | undefined): val is T => Boolean(val);