fast-string-truncated-width
Version:
A fast function for calculating where a string should be truncated, given an optional width limit and an ellipsis string.
3 lines (2 loc) • 22 B
JavaScript
A fast function for calculating where a string should be truncated, given an optional width limit and an ellipsis string.