forked from Archives/Athou_commafeed
remove lodash to reduce bundle size by 100kb
This commit is contained in:
@@ -64,3 +64,5 @@ export const openLinkInBackgroundTab = (url: string) => {
|
||||
})
|
||||
)
|
||||
}
|
||||
|
||||
export const truncate = (str: string, n: number) => (str.length > n ? `${str.slice(0, n - 1)}\u2026` : str)
|
||||
|
||||
Reference in New Issue
Block a user