Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Added typeOf functionality #156
This may be a special use case, but it makes for nice filtering of errors without having to deep check vs strings and numbers.
Although it doesn't satisfy the instanceof concern as seen here #101, it does make filtering manually cleaner.
Instead of having to do such things as:
You can instead do:
This keeps the logic simpler and also prevents potential spelling errors, remembering status codes, and internal changes to the structure of the output.