Export: looping over creators in order
This is a really basic question but I want to be sure I have it right since I am not experienced with javascript.
I want to loop over the creators of an item and process each creator, preserving the order of authors/editors/etc. Can a "for c in item.creators" loop be used for this or do I have to use an indexed array loop? I.e. will for...in always preserve order? I think it will because it's looping over properties of an object, right?
Thanks.
I want to loop over the creators of an item and process each creator, preserving the order of authors/editors/etc. Can a "for c in item.creators" loop be used for this or do I have to use an indexed array loop? I.e. will for...in always preserve order? I think it will because it's looping over properties of an object, right?
Thanks.
But yes, post to the dev list with further questions like this.