@yoshuawuyts results.length?
mongoose returning an empty array if no results are found is retarded. Can't do falsy checks on those oi.
-
-
-
@maciejmalecki Thought it sometimes returned an object, sometimes an array but guess since it's always an array that works. tnx! - 1 more reply
New conversation -
-
-
@yoshuawuyts I wish we had this: Object.defineProperty(Array.prototype, 'any', { get: function() { return this.length !== 0; } });Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.