lib/livedata/Model.js
function isModel(object) {
    if (!object || typeof object !== 'object') {
        return false;
    }
    else if ('isModel' in object) {
        diag.debug.assert(function () { return object.isModel === Model.prototype.isPrototypeOf(object); });
        return object.isModel;
    }
    else {
        return Model.prototype.isPrototypeOf(object);
    }
}
function isModel(object) {
    if (!object || typeof object !== 'object') {
        return false;
    }
    else if ('isModel' in object) {
        diag.debug.assert(function () { return object.isModel === Model.prototype.isPrototypeOf(object); });
        return object.isModel;
    }
    else {
        return Model.prototype.isPrototypeOf(object);
    }
}
function isModel ( object ) { if ( ! object || typeof object !== 'object' ) { return false ; } else if ( 'isModel' in object ) { diag . debug . assert ( function ( ) { return object . isModel === Model . prototype . isPrototypeOf ( object ) ; } ) ; return object . isModel ; } else { return Model . prototype . isPrototypeOf ( object ) ; } }
tests whether a given object is a Model.

@param {object} object to check.
@return {boolean} whether object is a Model.
tests whether a given object is a Model .