UNPKG

scrivito

Version:

Scrivito is a professional, yet easy to use SaaS Enterprise Content Management Service, built for digital agencies and medium to large businesses. It is completely maintenance-free, cost-effective, and has unprecedented performance and security.

9 lines (8 loc) 296 B
/** returns true, iff the given value is not null and not undefined. * (helps typescript infer the typing when used with higher-order functions) */ export function isPresent<T>( maybeValue: T | null | undefined ): maybeValue is T { return maybeValue !== null && maybeValue !== undefined; }