See also: trimR, trimAll |
Removes all occurences of the trim character from the left side of a character expression.
JSV_trimL(expS [, expC])
expS.trimL([expC])
The trimL functions returns the specified expression with the trim character removed from the left side of the string.
The trimL functions use the following arguments.
Argument | Description |
expS | The character to be trimmed. |
expC | The character to be trimmed. If expC is omitted, spaces are trimmed from the string expS. |
n/a
The following lines of code
var testString = "@@@@@Busy@@@@@@@@@@@@", trimString = '@';
document.write( "Removing " + trimString.bold() +
" from " +
testString.bold() +
" results in " +
JSV_trimL(testString, trimString).bold() );
produce
Copyright © 1998-2000 Roaring Fork Software. All rights reserved.