for (var i = 0, l = 10000; i < l; ++i) {
var postParams = {};
postParams[i] = 'avalueofsorts'
}
In a Cybernate comment, you can create an object in advance and just fill it, otherwise you will create it every time. You probably want this:
for (var i = 0, l = 10000, postParams = {}; i < l; ++i) {
postParams[i] = 'avalueofsorts'
}
source
share