WWW-www.enlightenment.org pushed a commit to branch master. http://git.enlightenment.org/website/www-content.git/commit/?id=068be9428c745844253dbcfbbddff1a74f7faac0
commit 068be9428c745844253dbcfbbddff1a74f7faac0 Author: Lauro Moura <lauromo...@expertisesolutions.com.br> Date: Thu Nov 26 12:31:24 2015 -0800 Wiki page eina changed with summary [] by Lauro Moura --- pages/api/javascript/eina.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pages/api/javascript/eina.txt b/pages/api/javascript/eina.txt index 1497acf..61688d0 100644 --- a/pages/api/javascript/eina.txt +++ b/pages/api/javascript/eina.txt @@ -116,6 +116,24 @@ As with pushing elements, trying to push an element of a different type from the === Deleting and removing items === +Syntax + +<code javascript> +var value = obj.pop(); +</code> + +Behaves like Javascript ''Array.pop()'', removing the last element of the list and returning it. + +Example code: +<code javascript> +// obj is [1,2,3,4,5] +var value = obj.pop(); // value now is 5 and obj is [1,2,3,4] +</code> + +<note important> +Trying to pop an item from an empty list will return undefined and leave the list empty. +</note> + === Getting the number of Elements === === Printing the elements === --