2011-03-08 19:48:57 -08:00

13 lines
192 B
JavaScript

/**
* Returns an array of all of the keys in the document.
*
* @author Max Ogden
*/
function(doc) {
var keys = [];
for (var key in doc) {
keys.push(key);
}
emit(doc, keys);
}