include :: String

include(substring) -> Boolean

 

Check if the string contains a substring.

 

'Prototype framework'.include('frame');

//-> true

 

'Prototype framework'.include('frameset');

//-> false

 

 


Prototype API 1.5.0 - prototypejs.org