Lessons from open-source: typeof alternative to get a variable type
This lesson is picked from Next.js source code. In this article, you will learn how Next.js checks if an error is plain object and why such a check is necessary.
I was exploring is-error.ts and found isPlainObject imported at the top of the file.
Ho...
ramunarasinga.hashnode.dev2 min read