You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure this is a good idea. It would work fine for simple things, but for most custom objects, the type would just be Object, which means it would be true even when the objects differ.
sindresorhus
changed the title
Proposal: is.equal() or is.equalType()
Proposal: is.equalType()Jan 1, 2022
It would be useful as a type guard function of inferring the type of another variable compared to the type of one variable.
It would be not strict type level equal.
Related: sindresorhus/ts-extras#2
The text was updated successfully, but these errors were encountered: