Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 360 Bytes

README.md

File metadata and controls

9 lines (7 loc) · 360 Bytes

trim

A basic JavaScript trim function to remove lead and trail white space and control characters. For use with HTAs and older browsers that don't support the built-in .trim() method.

Usage

trim(inputString);

If inputString is not a string, an error message will be output to the console and the unchanged value will be returned.