Difference between revisions of "Test"
Line 1: | Line 1: | ||
− | + | <source lang="javascript" collapse="true" first-line="2"> | |
− | <source lang=" | + | // 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> | </source> |
Revision as of 13:19, 20 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; }