Skip to content

Commit 089703e

Browse files
authored
Merge pull request #5 from indivorg/not-empty
feat: add method notEmpty
2 parents a0b6919 + 8feae8e commit 089703e

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)