Skip to content
/ trim Public

A basic JavaScript trim function to remove lead and trail white space and control characters

License

Notifications You must be signed in to change notification settings

freginold/trim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

A basic JavaScript trim function to remove lead and trail white space and control characters

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published