js-utils
A collection of js utility functions that can be shared amongst components.
capitalize(string)
Captitalize the first letter of a string.
- string (string) - The string to be capitalized
eliminateOrphans(string, count)
Eliminate orphans from the end of a string by replacing spaces with
.
- string (string) - The string to be de-orphaned
- count (string) [optional] - Total char count from end of string in which to replace spaces (defaults to 12)