Very cool, thanks for sharing! I was looking for exactly that and intend to adapt it to assertion functions.
Just a quick note - I'm not sure why those complicated hasOwnProperty and hasOwn types are needed, and I simplified as follows.
Would love to hear from you @noriste@alexis what could go wrong with my code.
Very cool, thanks for sharing! I was looking for exactly that and intend to adapt it to assertion functions.
Just a quick note - I'm not sure why those complicated
hasOwnPropertyandhasOwntypes are needed, and I simplified as follows.Would love to hear from you @noriste @alexis what could go wrong with my code.
Uhm, I think you are right, we do not need them...