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

4 lines
105 B
TypeScript

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