Permalink
Browse files

Update README.md

  • Loading branch information...
Geek-Fish committed Jul 6, 2016
1 parent acf08aa commit 4760132938db17ea4bc0cd2abf91b8342900986a
Showing with 6 additions and 6 deletions.
  1. +6 −6 README.md
@@ -1,12 +1,12 @@
# Truncate at Wordbreak - Javascript
Truncates a String at the last word break, with the option to append text to the final String - JavaScript
Variables:
**Variables:**
str - The original String you want truncated
len - The max length the final, truncated string can be (this takes into account the appended text)
append - Any optional text you would like to append after you truncate str.
+ <strong>str</strong> - The original String you want truncated</br>
+ <strong>len</strong> - The max length the final, truncated string can be (this takes into account the appended text)</br>
+ <strong>append</strong> - Any optional text you would like to append after you truncate str.
Notes:
**Notes:**
If text cannot be truncated (the len isn't long enough to reach the first space (with or without your appended text), the function will return the original string.
If text cannot be truncated (the len isn't long enough to reach the first space, with or without your appended text), the function will return the original string.

0 comments on commit 4760132

Please sign in to comment.