Skip to content

Feature: Add truncateWords() for word-based truncation #152

Description

@Raghavjha60570

Summary

Introduce a truncateWords() function to truncate a string after a certain number of words instead of characters.

Example

truncateWords("JavaScript is an amazing language", 3);
// Output: "JavaScript is an..."

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions