UNPKG

chrono-node

Version:

A natural language date parser in Javascript

14 lines 332 B
export class BufferedDebugHandler { constructor() { this.buffer = []; } debug(debugMsg) { this.buffer.push(debugMsg); } executeBufferedBlocks() { const logs = this.buffer.map((block) => block()); this.buffer = []; return logs; } } //# sourceMappingURL=debugging.js.map