Overview | IndexGodLikeMouse JavaScript Framework
FRAMES | NO FRAMES

GLM.String.count( param1, param2, ... paramN )

GLM.String.count( param1, param2, ... paramN )

Method for returning the occurance count of any of the string parameters passed into the count function.

Parameters:

param1, param2, ... paramN - Unlimited parameters, the string or strings to count the occurance of.

Returns:

The occurance count.

Example:

var s = new GLM.String("hello world");
s.count("e","l"); //returns 4



Overview | IndexGodLikeMouse JavaScript Framework
FRAMES | NO FRAMES