Difference between revisions of "Test"
(Blanked the page) |
|||
Line 1: | Line 1: | ||
− | + | <source lang="javascript" collapse="true" first-line="2"> | |
+ | // SyntaxHighlighter makes your code snippets beautiful without tiring your servers. | ||
+ | // http://alexgorbatchev.com | ||
+ | var setArray = function(elems) { | ||
+ | this.length = 0; | ||
+ | push.apply(this, elems); | ||
+ | return this; | ||
+ | } | ||
+ | </source> |
Revision as of 10:09, 16 October 2014
// SyntaxHighlighter makes your code snippets beautiful without tiring your servers. // http://alexgorbatchev.com var setArray = function(elems) { this.length = 0; push.apply(this, elems); return this; }