what does the .pop() do ?
if (_droptarget.split("_", 2).pop() eq "1")
p.s.
I am looking for a good example of a drag and drop interaction I can use. If you know of any I would appreciate it.
Printable View
what does the .pop() do ?
if (_droptarget.split("_", 2).pop() eq "1")
p.s.
I am looking for a good example of a drag and drop interaction I can use. If you know of any I would appreciate it.
i think its used in arrays to delete the last array element.
example:
Code:names=["tom","becky","lisa","stuart"];
newNames=names.pop();
/*would producenew array with following elements: newNames=["tom","becky","lisa"]*/