getAtPos
Class
Method of Hash
Library
hash.js
Syntax
exampleHash.getAtPos(pos);
Parameters
pos An integer indicating the cursor position for the desired item.
Description
Returns the value of the item in the Hash for that cursor position.
Examples
In the example below the variable
movie will end up containing the string
"Logan's Run".
var badSciFi = new Hash();
var movie = '';
badSciFi.setItem("Connery", "Zardoz");
badSciFi.setItem("York", "Logan's Run");
badSciFi.setItem("Douglas", "Saturn 3");
movie = badSciFi.getAtPos(1);