1 function printCSV(array, columns) {
2 print(columns.join(','));
3 array.forEach(function(i) {
4 var row = columns.map(function(column) {
6 if (field === null || field === undefined) {
16 function createIdForTimestampString(timestamp) {
17 var hexSeconds = Math.floor(timestamp / 1000).toString(16);
19 while (hexSeconds.length < 8) {
20 hexSeconds = '0' + hexSeconds;
23 return ObjectId(hexSeconds + '0000000000000000');