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.
Passionate, positive-minded, Sr Front-end Eng @ Preply (Design System) / Advisor @ Plannix / ex platform team / ex team leader / Speaker / Instructor / Writer / Remote worker
Location
Lecco, Italy
Education
Bachelor's degree, Communication design - High School Diploma, Informatic Technologies
Pronouns
he/him
Work
Senior Front-end Engineer/Tech lead at Preply (Design System)
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...