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.
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
But yes, post to the dev list with further questions like this.