safe-try
v0.0.4
Published
Want this?
Downloads
13
Readme
safe-try
Want this?
const [result, error] = try await asyncMightFail();
Do this!
const [result, error] = await try_(asyncMightFail());
Inspired by Matt Pocock's tweet:
Usage
import { try_ } from "safe-try";
const [result, error] = await try_(asyncMightFail());