mirror of
https://github.com/logos-messaging/logos-messaging-js.git
synced 2026-01-16 06:53:08 +00:00
- Replace exception pattern with a result pattern as it better fits the usage. - merge few maps to prefer chaining to assign var after var. - Make `isDefined` type helper a common util function
4 lines
92 B
TypeScript
4 lines
92 B
TypeScript
export function isDefined<T>(value: T | undefined): value is T {
|
|
return Boolean(value);
|
|
}
|