Difference between revisions of "Test"
From OuroDev
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Test | Test | ||
− | < | + | <source lang="javascript" line start="2" highlight="4-6"> |
− | + | // 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> |
Latest revision as of 10:26, 14 May 2019
Test
// 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;
}