Guest User

Untitled

a guest
May 26th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. function ellipsis(string, length) {
  2. return string.length > length ? (string.substr(0, length - 3) + '...') : string;
  3. }
Add Comment
Please, Sign In to add comment