WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Change order of array, johan, September 30, 2003
     Re:Change order of array, Erik Arvidsson, October 1, 2003
     Re:Change order of array, Wellington, September 30, 2003
         Re:Change order of array, johan, October 1, 2003
             Re:Change order of array, Wellington, October 1, 2003

Subject: Re:Change order of array From: Erik Arvidsson Date: October 1, 2003
var a = ["a","b","c","d","1"];
var last = a.splice(a.length - 1, 1); // removes last
a = [last].concat(a);

erik



Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX