NEW METHOD: Uize.String.hasPadding

0 views
Skip to first unread message

cvr

unread,
Nov 2, 2009, 2:35:24 PM11/2/09
to UIZE JavaScript Framework Group
The new Uize.String.hasPadding static method of the Uize.String module
returns a boolean, indicidating whether or not the specified string
has whitespace padding on either - or both - of its sides (ie. leading
or trailing whitespace).

EXAMPLES

Uize.String.hasPadding (' leading whitespace'); // returns true
Uize.String.hasPadding ('trailing whitespace '); // returns true
Uize.String.hasPadding (' leading and trailing whitespace '); //
returns true
Uize.String.hasPadding ('no padding'); // returns false

http://www.uize.com/reference/Uize.String.html
Reply all
Reply to author
Forward
0 new messages