UNPKG

@leismore/unknown2error

Version:

The function converts anything into an object of Error (or subclasses) class. If `error` is an object of Error (or subclasses) class, it returns the original `error` object. With any other type, it will convert it into a string first and then an Error obj

1 folder, 5 files
603 B
39 B
34.5 kB
1.69 kB
1.27 kB
520 B