Skip to content

Commit 8feae8e

Browse files
committed
feat: add method notEmpty
1 parent a0b6919 commit 8feae8e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/main.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export * from './parse-resource-name';
2+
export * from './not-empty';

src/not-empty.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export function notEmpty<T>(value: T | null | undefined): value is T {
2+
return value !== null && value !== undefined;
3+
}

0 commit comments

Comments
 (0)