You can view this on Github or CodePen, info is at the bottom of the post. I've been finding myself needing to truncate strings more and more lately, especially while working with Twitter. I created a function that was simple and reusable. That is the point of Object Orientated Programming…