Function that will call the given UDF/Closure with every entry (key/value) in the given collection.
each(collection, closure [, parallel] [, maxThreads])
→ returns void
false
20
parallel
argument is set to false
.
coll = [{
id: 0,
name: 'me'
},{
id: 1,
name: 'you'
}];
function outputCollection(item) {
writeOutput(item.name);
writeOutput(' - ');
}
each(coll,outputCollection,true);
Expected Result: me - you -
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.