13 lines
192 B
JavaScript
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);
|
|
}
|