cal.pub0.org/apps/web/lib/notEmpty.ts

4 lines
105 B
TypeScript

const notEmpty = <T>(value: T): value is NonNullable<typeof value> => !!value;
export default notEmpty;