versions/jsonc.js
function unique(oldArray) {
    var nIndex,
      nLen = oldArray.length,
      aArr = [];
    for (nIndex = 0; nIndex < nLen; nIndex++) {
      if (!contains(aArr, oldArray[nIndex][1])) {
        aArr.push(oldArray[nIndex]);
      }
    }
    return aArr;
  }
function unique(oldArray) {
    var nIndex,
      nLen = oldArray.length,
      aArr = [];
    for (nIndex = 0; nIndex < nLen; nIndex++) {
      if (!contains(aArr, oldArray[nIndex][1])) {
        aArr.push(oldArray[nIndex]);
      }
    }
    return aArr;
  }
function unique ( oldArray ) { var nIndex , nLen = oldArray . length , aArr = [ ] ; for ( nIndex = 0 ; nIndex < nLen ; nIndex ++ ) { if ( ! contains ( aArr , oldArray [ nIndex ] [ 1 ] ) ) { aArr . push ( oldArray [ nIndex ] ) ; } } return aArr ; }
Removes duplicated values in an array
@param oldArray
@returns {Array}
Removes duplicated values in an array