platform.js
function getManufacturer(guesses) {
      return reduce(guesses, function(result, value, key) {
        // Lookup the manufacturer by product or scan the UA for the manufacturer.
        return result || (
          value[product] ||
          value[/^[a-z]+(?: +[a-z]+\b)*/i.exec(product)] ||
          RegExp('\\b' + qualify(key) + '(?:\\b|\\w*\\d)', 'i').exec(ua)
        ) && key;
      });
    }
function getManufacturer(guesses) {
      return reduce(guesses, function(result, value, key) {
        // Lookup the manufacturer by product or scan the UA for the manufacturer.
        return result || (
          value[product] ||
          value[/^[a-z]+(?: +[a-z]+\b)*/i.exec(product)] ||
          RegExp('\\b' + qualify(key) + '(?:\\b|\\w*\\d)', 'i').exec(ua)
        ) && key;
      });
    }
function getManufacturer ( guesses ) { return reduce ( guesses , function ( result , value , key ) { // Lookup the manufacturer by product or scan the UA for the manufacturer. return result || ( value [ product ] || value [ / ^[a-z]+(?: +[a-z]+\b)* / i . exec ( product ) ] || RegExp ( '\\b' + qualify ( key ) + '(?:\\b|\\w*\\d)' , 'i' ) . exec ( ua ) ) && key ; } ) ; }
Picks the manufacturer from an array of guesses.

@private
@param {Array} guesses An object of guesses.
@returns {null|string} The detected manufacturer.
Picks the manufacturer from an array of guesses .