trim()
Removes all whitespace characters or the specified characters from the beginning of a string.
This function is valid in v2.0.0 to v2.24.3. This function has been downloaded 60 times.undefined
"\t\n\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF"
opt_str
is not given a function will be returned that will take one string argument and trim the beginning and end of that string using the characters from opt_chars
. If opt_str
is given it will be returned with all leading and trailing characters found in opt_chars
stripped off.This function directly requires the following functions which are included automatically:
trimLeft()
trimRight()