 |
trim(), startsWith() and endsWith() in JavaScript? - Javascript FAQ - Tek-Tips
Not so elegant is it? Well, here is a way you could BIND your functions to the data type and call them like in-built functionsà here's how: ... var myStr = ô Earth is a beautiful planet ö; var myStr2 = myStr.trim(); //==ôEarth is a beautiful planetö; if (
www.tek-tips.com |
 |