9 lines
201 B
JavaScript
9 lines
201 B
JavaScript
// an example map function, emits the doc id
|
|
// and the list of keys it contains
|
|
// !code lib.helpers.math
|
|
|
|
function(doc) {
|
|
var k, keys = []
|
|
for (k in doc) keys.push(k);
|
|
emit(doc._id, keys);
|
|
};
|