gitmyhub

fast-string-truncated-width

JavaScript ★ 22 updated 9mo ago

A fast function for calculating where a string should be truncated, given an optional width limit and an ellipsis string.

No plain-English explanation yet — one is being written right now. Check back in a minute.