Skip to content

Commit bb41d32

Browse files
committed
fix: add missing function
1 parent d9e1d24 commit bb41d32

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/handy.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,3 +495,7 @@ export const fromMicroSecondsToDate = (micros: number) => {
495495

496496
return timestamp
497497
}
498+
499+
export function onlyUnique(value: string, index: number, array: string[]) {
500+
return array.indexOf(value) === index
501+
}

0 commit comments

Comments
 (0)