looking to do something like this, but i am not sure if there is anything like it in _javascript_.. it does seem pretty mochikit-ish..

var array = new Array (dog, cat, hamster, horse, monkey);

positionAnimal(hamster) = 2; <- this type of functionality..

if value exists in the array, return the index, otherwise, returns something else..

thanks!


___

peace,

sergio

photographer, journalist, visionary

www.coffee-black.com



Reply via email to