Files
plane/space/ee/helpers/string.helper.ts
guru_sainath 39a3ad7504 chore: Updated mets information and updated the ssr for page and view… (#1871)
* chore: Updated mets information and updated the ssr for page and views in space

* chore: updated opengraph in pages and views

* chore: removed image in opengraph and twitter

* chore: updated url name

* typo: in intake layout
2024-12-04 18:39:48 +05:30

5 lines
144 B
TypeScript

export const stripString = (str: string, length: number) => {
if (str.length <= length) return str;
return str.slice(0, length) + "...";
};