capitalize
capitalize() -> string
Capitalizes the first letter of a string and downcases all the others.
Examples
'hello'.capitalize();
// -> 'Hello'
'HELLO WORLD!'.capitalize();
// -> 'Hello world!'
© 2006-2008 Prototype Core Team
© 2009 перевод Иванов Егор
© 2009 перевод Иванов Егор