index.js
function splitPlatformInfo(uaList) {
  for(var i = 0; i < uaList.length; ++i) {
    var item = uaList[i];
    if (isEnclosedInParens(item)) {
      return removeEmptyElements(trimSpacesInEachElement(item.substr(1, item.length-2).split(';')));
    }
  }
}
function splitPlatformInfo(uaList) {
  for(var i = 0; i < uaList.length; ++i) {
    var item = uaList[i];
    if (isEnclosedInParens(item)) {
      return removeEmptyElements(trimSpacesInEachElement(item.substr(1, item.length-2).split(';')));
    }
  }
}
function splitPlatformInfo ( uaList ) { for ( var i = 0 ; i < uaList . length ; ++ i ) { var item = uaList [ i ] ; if ( isEnclosedInParens ( item ) ) { return removeEmptyElements ( trimSpacesInEachElement ( item . substr ( 1 , item . length - 2 ) . split ( ';' ) ) ) ; } } }
Finds the special token in the user agent token list that corresponds to the platform info. This is the first element contained in parentheses that has semicolon delimited elements. Returns the platform info as an array split by the semicolons.
Finds the special token in the user agent token list that corresponds to the platform info . This is the first element contained in parentheses that has semicolon delimited elements . Returns the platform info as an array split by the semicolons .