UNPKG

@worker-tools/middleware

Version:

A suite of standalone HTTP server middlewares for Worker Runtimes.

34 lines 786 B
const _arr = new WeakMap(); export class AppendOnlyList { constructor() { _arr.set(this, []); } get length() { return _arr.get(this).length; } toString() { return _arr.get(this).toString(); } toLocaleString() { return _arr.get(this).toLocaleString(); } push(...items) { return _arr.get(this).push(...items); } entries() { return _arr.get(this).entries(); } keys() { return _arr.get(this).keys(); } values() { return _arr.get(this).values(); } [Symbol.iterator]() { return _arr.get(this)[Symbol.iterator](); } [Symbol.unscopables]() { throw new Error('Method not implemented.'); } } //# sourceMappingURL=append-only-list.js.map