Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > Array Objects > Array pop() MethodThis method returns the last element of the current Array object, then removes the element from the array. SyntaxReturnsThe last element of the current Array object. UsageThis method first gets the length of the current Array object. If the length is undefined or 0, then undefined is returned. Otherwise, the last element is returned. This element is then deleted, and the length of current array object is decreased by one. The pop() method works on the end of an array, whereas, the Array shift() method works on the beginning. Examplevar a = new Array( "four" ); |
Siebel eScript Language Reference |