This repository has been archived on 2023-11-14. You can view files and clone it, but cannot push or open issues/pull-requests.
vogue/src/extensions.ts

11 lines
246 B
TypeScript

Object.defineProperty(Array.prototype, 'empty', {
get() {
return this.length === 0;
}
});
process.on('unhandledRejection', (reason: Error, p) => {
console.log(reason.stack ?? reason.name + '\n\nStack trace unavailable...');
});