stringer-tools
Version:
String manipulations in JS
16 lines (14 loc) • 589 B
Markdown
stringer tools makes it easier to run common opertaions in JS on a string object such as:
<b>length</b> - returns given string length
<br />
<b>wordsCount</b> - returns words count of a given string
<br />
<b>isNullOrEmpty</b> - returns weather a string contains value which is not ''
<br />
<b>containsChar</b> - returns if a given string containg a given char
<br />
<b>wrap</b> - wraps a given string with another given string (both prefix and suffix)
<br />
<b>endBy</b> - adds given suffix to a given string
<br />
<b>startBy</b> - adds given prefix to a given string