Quartz Composer JavaScript Reference © Cybero Designs  

pop

Type method
Formatarray elements = array object. Pop () array.pop()
Commentary
Remove the array element at the end. Removes the last element from an array and returns that element.
Sample code - QC 2 JavaScript
myAry1 = new Array (12,34, "AB", "CD");
n = myAry1.pop ();
outputs [0] = n;
Sample code - QC 3 JavaScript
var myArrayB = new Array(12,34,"AB","CD");
var outputArray = new Array();
var n = myArrayB.pop();
function (__string outputArray) main ()
{ var result = new Object();
result.outputArray = n.toString();
return result; }



Return to the Start Page