Mongo lean objects don't have a constructor, so using isObject return false ``` coffeescript isObject = (value) -> return false if not value? return false if typeof value isnt 'object' value.constructor is Object # <-- should not exist ```
Mongo lean objects don't have a constructor, so using isObject return false