If no templates are available, an empty array is returned.
3.2
<error>
Error
Most likely an invalid player was specified.
3.2
Example
Sort templates by cost
var templates = enumTemplates(me);
Â
var byCost = function(a, b) {
return a.cost - b.cost;
}
Â
templates.sort(byCost);
Â
var cheapest = templates[0];
Â
var mostExpensive = templates[templates.length-1];