Skip to content

Instantly share code, notes, and snippets.

function _fetch(document, field, first, count) {
var ret = [];
for (let i=first; i<first + count; i++) {
ret.push(document[field][i]);
};
return ret;