/** * @file * * * User: marand * Date: 02/09/15 * Time: 08:58 */ // Global, so no "var". ownsDocument = function (userId, doc) { return doc && doc.userId === userId; }