tapjs/tmatch

Add matchStrict to avoid type coercion

Opened this issue · 1 comments

Hi, what do you think about adding a matchStrict function that uses strict equality for primitive types? e.g.

matchStrict({ x: 3 }, { x: '3' })  ===  false

I'd be fine with that. Patch welcome. You can look at https://github.com/tapjs/tsame to see how it's strict/loose behavior is implemented.