In every single line of code.
This is a function way to handle try/catch constructs functionally.
# npmnpm i lefu# yarnyarn add lefu
You can use this library as a full try/catch construct
;;console.logresult // 'Darn! A type error'
you can also try/catch async functions
;;console.logresult // Promise('Darn! A type error')
You can use this library for executing a function when an error is caught
;trycatch error// output:// it is a TypeError
Or you can use it to check if an error is of a certain type
;trycatch errortrycatch error// output:// it is a TypeError
Read the contributing guidelines
Read the licence