(proto, fun, builder)
| 176 | } |
| 177 | |
| 178 | function addAggregate(proto, fun, builder) { |
| 179 | if (Array.isArray(fun)) { |
| 180 | proto[fun[0].toLowerCase()] = builder((fun[1] || fun[0]).toLowerCase()); |
| 181 | } else { |
| 182 | proto[fun.toLowerCase()] = builder(fun.toLowerCase()); |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | function aggregateAlias(fun, fields) { |
| 187 | return fun + (fields && fields.length ? "_" + fields.join("_") : ""); |
no outgoing calls
no test coverage detected