3 ms·
> You're going to have to do type conversion on the string regardless, because "MongoDB Objectid" isn't a native type for the compiler My point was that jQuery
by annnnd 13y ago
> You're going to have to do type conversion on the string regardless, because "MongoDB Objectid" isn't a native type for the compiler
My point was that jQuery .data() tries to guess how to handle strings and misses in some cases, because the strings are too similar to numbers. The fact that this particular string was a MongoID is actually not relevant to the problem, it just illustrates that this is a real-world problem.