(reduceFunString)
| 9218 | }; |
| 9219 | |
| 9220 | function getBuiltIn(reduceFunString) { |
| 9221 | if (/^_sum/.test(reduceFunString)) { |
| 9222 | return builtInReduce._sum; |
| 9223 | } else if (/^_count/.test(reduceFunString)) { |
| 9224 | return builtInReduce._count; |
| 9225 | } else if (/^_stats/.test(reduceFunString)) { |
| 9226 | return builtInReduce._stats; |
| 9227 | } else if (/^_/.test(reduceFunString)) { |
| 9228 | throw new Error(reduceFunString + ' is not a supported reduce function.'); |
| 9229 | } |
| 9230 | } |
| 9231 | |
| 9232 | function mapper(mapFun, emit) { |
| 9233 | // for temp_views one can use emit(doc, emit), see #38 |
no outgoing calls
no test coverage detected
searching dependent graphs…