There are times that we need to create some assertions to be sure an object respects some rules. A common case is to check if an object is defined; to do this you can create a simple assertion function like this function assert(condition: unknown, me...

Markdown supported · ⌘↵ to post
No responses yet.