DEV Community


Discussion on: Understanding Loose Equality In JavaScript

emnudge profile image
EmNudge Author

.includes() and BigInt() are the ones that have been specifically annoying me when making recent snippets, but I'm sure there are more that I just haven't come across yet.
Using symbols as index values might just not be allowed in TS at all, so idk if there's a good solution to that.
i.e. obj[Symbol.toPrimitive] requires any as an index or just // @ts-ignore