this.arrItem=[1,2,3,4,5];function each(udfFunction){var i=0;for(i=1;i LTE arraylen(this.arrItem);i++){arguments.udfFunction(this.arrItem, i);}}
if(arraylen(items) EQ index){
// last onedump(items[index]);
}
if(arraylen(items) EQ index){
// last onedump(items[index]);
}
fwiw, when you call struct.each() you get passed the key and the value, so it would kinda make sense that array.each() got passed index and value.
Chris
--
if(arguments.index EQ arguments.parentLength){}
if(arguments.index EQ arguments.parentLength){}
if(arguments.index EQ arguments.items.length){}
if(c EQ myItems.length){}
c++;
--
+1 for optional index. I'd put it at 2nd place.
This will be very intuitive to developers who are familiar with the very popular query js library (IIRC)
Igal
--
typos, misspels, and other weird words brought to you courtesy of my mobile device and its auto-(in)correct feature.
--
You received this message because you are subscribed to the Google Groups "Railo" group.
To unsubscribe from this group, send email to railo+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.