Repository
Current version released
4 years ago
panic-fn
Functional way of throwing errors in JS/TS
Usage:
import { panic } from 'panic-fn';
panic('Oops');
// or
panic(new Error('Custom error'));
Functional way of throwing errors in JS/TS
import { panic } from 'panic-fn';
panic('Oops');
// or
panic(new Error('Custom error'));