function getParams(self, steamObj, requiredParams, optionalParams) {
    // Required params will throw exception if they don't exist
    var paramObj = {};
    for (var i = 0, len = requiredParams.length; i < len; i++) {
        var paramName = requiredParams[i];

        // Support array arguments
        paramName = paramName.replace("[0]","");

        paramObj[paramName] = get(self, steamObj, paramName);
    }

    // Ignore the thrown exception on optionalParams if field isn't given
    for (var i = 0, len = optionalParams.length; i < len; i++) {
        var paramName = optionalParams[i];

        // Support array arguments
        paramName = paramName.replace("[0]","");

        try {
            paramObj[paramName] = get(self, steamObj, paramName);
        } catch(e) {

        }

    }
    return paramObj;
}
function getParams(self, steamObj, requiredParams, optionalParams) {
    
    var paramObj = {};
    for (var i = 0, len = requiredParams.length; i < len; i++) {
        var paramName = requiredParams[i];

        
        paramName = paramName.replace("[0]","");

        paramObj[paramName] = get(self, steamObj, paramName);
    }

    
    for (var i = 0, len = optionalParams.length; i < len; i++) {
        var paramName = optionalParams[i];

        
        paramName = paramName.replace("[0]","");

        try {
            paramObj[paramName] = get(self, steamObj, paramName);
        } catch(e) {

        }

    }
    return paramObj;
}
function getParams ( self , steamObj , requiredParams , optionalParams ) { // Required params will throw exception if they don't exist var paramObj = { } ; for ( var i = 0 , len = requiredParams . length ; i < len ; i ++ ) { var paramName = requiredParams [ i ] ; // Support array arguments paramName = paramName . replace ( "[0]" , "" ) ; paramObj [ paramName ] = get ( self , steamObj , paramName ) ; } // Ignore the thrown exception on optionalParams if field isn't given for ( var i = 0 , len = optionalParams . length ; i < len ; i ++ ) { var paramName = optionalParams [ i ] ; // Support array arguments paramName = paramName . replace ( "[0]" , "" ) ; try { paramObj [ paramName ] = get ( self , steamObj , paramName ) ; } catch ( e ) { } } return paramObj ; }
Get the parameters from the steamObj passed in or Steam instance
Get the parameters from the steamObj passed in or Steam instance