Commit 85f32410 by Wes Freeman

Simple update to check explicitly for dates and ObjectIds using instanceof.

parent 62f56de5
......@@ -57,6 +57,12 @@ varietyTypeOf = function(thing) {
else if (thing === null) {
return "null";
}
else if (thing instanceof Date) {
return "date";
}
else if (thing instanceof ObjectId) {
return "objectId";
}
else {
return "object";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment