<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.4" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Top 10 JavaScript String.prototype Extensions</title>
	<link>http://www.ivanuzunov.net/top-10-javascript-stringprototype-extensions/</link>
	<description>Web Development Tips &#038; Tricks</description>
	<pubDate>Sat, 17 May 2008 08:30:23 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>

	<item>
		<title>by: lee&#8217;s garbage collection &#187; Blog Archive &#187; Interesting links&#8230;</title>
		<link>http://www.ivanuzunov.net/top-10-javascript-stringprototype-extensions/#comment-14979</link>
		<pubDate>Fri, 24 Aug 2007 20:08:01 +0000</pubDate>
		<guid>http://www.ivanuzunov.net/top-10-javascript-stringprototype-extensions/#comment-14979</guid>
					<description>[...] Today I found out that you can extend the JavaScript String object with the String.prototype extensions (standard part of the JavaScript language). So when you define a function like: String.prototype.trim = function(){ } Then you can just use it like: test.trim() While not being very spectucular, it&#8217;s still pretty neat. When you are dealing with forms that require a lot of checks, than this baby can come to hand. Here the blog entry that pointed me to this. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Today I found out that you can extend the JavaScript String object with the String.prototype extensions (standard part of the JavaScript language). So when you define a function like: String.prototype.trim = function(){ } Then you can just use it like: test.trim() While not being very spectucular, it&#8217;s still pretty neat. When you are dealing with forms that require a lot of checks, than this baby can come to hand. Here the blog entry that pointed me to this. [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Tiernans Comms Closet : Random Links</title>
		<link>http://www.ivanuzunov.net/top-10-javascript-stringprototype-extensions/#comment-14418</link>
		<pubDate>Wed, 15 Aug 2007 19:07:01 +0000</pubDate>
		<guid>http://www.ivanuzunov.net/top-10-javascript-stringprototype-extensions/#comment-14418</guid>
					<description>[...] top 10 JavaScript string.prototype extensions [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] top 10 JavaScript string.prototype extensions [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: jiang kuan</title>
		<link>http://www.ivanuzunov.net/top-10-javascript-stringprototype-extensions/#comment-14062</link>
		<pubDate>Sat, 11 Aug 2007 12:36:19 +0000</pubDate>
		<guid>http://www.ivanuzunov.net/top-10-javascript-stringprototype-extensions/#comment-14062</guid>
					<description>Why not add String.prototype.md5()</description>
		<content:encoded><![CDATA[<p>Why not add String.prototype.md5()
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Blog de Gragel &#187; Blog Archive &#187; Top 10 extensiones de strings en javascript</title>
		<link>http://www.ivanuzunov.net/top-10-javascript-stringprototype-extensions/#comment-13745</link>
		<pubDate>Tue, 07 Aug 2007 09:50:17 +0000</pubDate>
		<guid>http://www.ivanuzunov.net/top-10-javascript-stringprototype-extensions/#comment-13745</guid>
					<description>[...] con utilidades para extender la clase String de javascript.    &#160;&#160;&#160; Read More&#160;&#160;&#160;         Post aComment [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] con utilidades para extender la clase String de javascript.    &nbsp;&nbsp;&nbsp; Read More&nbsp;&nbsp;&nbsp;         Post aComment [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Utilidades Javascript</title>
		<link>http://www.ivanuzunov.net/top-10-javascript-stringprototype-extensions/#comment-13182</link>
		<pubDate>Mon, 30 Jul 2007 05:51:06 +0000</pubDate>
		<guid>http://www.ivanuzunov.net/top-10-javascript-stringprototype-extensions/#comment-13182</guid>
					<description>[...] Extendiendo la clase String con Prototype. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Extendiendo la clase String con Prototype. [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Dave</title>
		<link>http://www.ivanuzunov.net/top-10-javascript-stringprototype-extensions/#comment-13058</link>
		<pubDate>Thu, 26 Jul 2007 21:46:57 +0000</pubDate>
		<guid>http://www.ivanuzunov.net/top-10-javascript-stringprototype-extensions/#comment-13058</guid>
					<description>An extension with prototype.js I wrote...

Object.extend(String, {
	format: function(format) {
		var args = (Array.from(arguments)).slice(1);
		return format.replace(/\{(\d+)\}/g, function(pat, index) {
			return args[ Number(index) ].toString();
		});
	}
});


var x = String.format('Hi {0}.', 'dave');</description>
		<content:encoded><![CDATA[<p>An extension with prototype.js I wrote&#8230;</p>
<p>Object.extend(String, {<br />
	format: function(format) {<br />
		var args = (Array.from(arguments)).slice(1);<br />
		return format.replace(/\{(\d+)\}/g, function(pat, index) {<br />
			return args[ Number(index) ].toString();<br />
		});<br />
	}<br />
});</p>
<p>var x = String.format(&#8217;Hi {0}.&#8217;, &#8216;dave&#8217;);
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Nathan Friedly</title>
		<link>http://www.ivanuzunov.net/top-10-javascript-stringprototype-extensions/#comment-12951</link>
		<pubDate>Tue, 24 Jul 2007 15:00:49 +0000</pubDate>
		<guid>http://www.ivanuzunov.net/top-10-javascript-stringprototype-extensions/#comment-12951</guid>
					<description>I'd consider replacing that trim function. It's certainly not the slowest around, but there are other functions available that can be 50-100 times faster for long strings. See http://blog.stevenlevithan.com/archives/faster-trim-javascript</description>
		<content:encoded><![CDATA[<p>I&#8217;d consider replacing that trim function. It&#8217;s certainly not the slowest around, but there are other functions available that can be 50-100 times faster for long strings. See <a href='http://blog.stevenlevithan.com/archives/faster-trim-javascript' rel='nofollow'>http://blog.stevenlevithan.com/archives/faster-trim-javascript</a>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: links for 2007-07-18 &#171; 玻璃鏡</title>
		<link>http://www.ivanuzunov.net/top-10-javascript-stringprototype-extensions/#comment-12651</link>
		<pubDate>Wed, 18 Jul 2007 14:00:12 +0000</pubDate>
		<guid>http://www.ivanuzunov.net/top-10-javascript-stringprototype-extensions/#comment-12651</guid>
					<description>[...] Ivan Uzunov Blog » Blog Archive » Top 10 JavaScript String.prototype Extensions (tags: Javascript Extension Programming Tips String) [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Ivan Uzunov Blog » Blog Archive » Top 10 JavaScript String.prototype Extensions (tags: Javascript Extension Programming Tips String) [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Ivan Uzunov</title>
		<link>http://www.ivanuzunov.net/top-10-javascript-stringprototype-extensions/#comment-12639</link>
		<pubDate>Wed, 18 Jul 2007 08:34:19 +0000</pubDate>
		<guid>http://www.ivanuzunov.net/top-10-javascript-stringprototype-extensions/#comment-12639</guid>
					<description>Andrew, don't worry about the split with trim. Each element of the returned array is trimmed :)</description>
		<content:encoded><![CDATA[<p>Andrew, don&#8217;t worry about the split with trim. Each element of the returned array is trimmed <img src='http://www.ivanuzunov.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: 便?なJavaScriptの文字?拡張関数 &#124; LaboRat [ラボラッ?]</title>
		<link>http://www.ivanuzunov.net/top-10-javascript-stringprototype-extensions/#comment-12627</link>
		<pubDate>Wed, 18 Jul 2007 01:32:20 +0000</pubDate>
		<guid>http://www.ivanuzunov.net/top-10-javascript-stringprototype-extensions/#comment-12627</guid>
					<description>[...] Top 10 JavaScript String.prototype Extensions とっても便?なJS文字?拡張。 [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Top 10 JavaScript String.prototype Extensions とっても便?なJS文字?拡張。 [&#8230;]
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
