I am quite new to JavaScript professionally and I have encountered a situation where I need to give every item in a JavaScript array a unique id.
The array is very large so it cannot be done manually. Is there a simple way to do this? A simple numerical id for each would be superb. It is so that a PHP developer can easily manipulate the array and this is how he has requested it be done.