repo_description: Hey is a decentralized and permissionless social media app built with Lens Protocol 🌿
repo_topics: blockchain crypto dapp graphql hacktoberfest lens-protocol nextjs react social-media tailwindcss turborepo typescript vitest wagmi web3
code: const truncateByWords = (str: string, count: number): string => {
    const words = str.trim().split(/\s+/);
    return words.length > count ? `${words.slice(0, count).join(" ")}…` : str;
  };
  
  export default truncateByWords;
  