Simplified result/error handling for JavaScript. Grip always returns a consistent call result ready to be handled. It makes the control flow similar t

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-10-25 18:00:05

Simplified result/error handling for JavaScript. Grip always returns a consistent call result ready to be handled. It makes the control flow similar to that of Golang, but doesn't force you to make additional null checks or create transitional variables to hold error results.

The grip function accepts a function or a promise and returns a result with return value and status. The result can be hadled as either an object or a tuple.

Leave a Comment