mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-02-04 22:13:14 +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);
|
|
}
|