hylar/core/Logics/Fact.js
function(factSet) {
        var that = this;
        for (var key in factSet) {
            if(that.equivalentTo(factSet[key])){
                return key;
            }
        }
        return false;
    }
function(factSet) {
        var that = this;
        for (var key in factSet) {
            if(that.equivalentTo(factSet[key])){
                return key;
            }
        }
        return false;
    }
function ( factSet ) { var that = this ; for ( var key in factSet ) { if ( that . equivalentTo ( factSet [ key ] ) ) { return key ; } } return false ; }
Returns the fact if it appears in a set of facts.
Returns false otherwise.
@param factSet
Returns the fact if it appears in a set of facts . Returns false otherwise .