packages/build-tools/utils/general.js
function uniqueArray(item) {
  const u = {};
  const newArray = [];
  for (let i = 0, l = item.length; i < l; ++i) {
    if (!{}.hasOwnProperty.call(u, item[i])) {
      newArray.push(item[i]);
      u[item[i]] = 1;
    }
  }
  return newArray;
}
function uniqueArray(item) {
  const u = {};
  const newArray = [];
  for (let i = 0, l = item.length; i < l; ++i) {
    if (!{}.hasOwnProperty.call(u, item[i])) {
      newArray.push(item[i]);
      u[item[i]] = 1;
    }
  }
  return newArray;
}
function uniqueArray ( item ) { const u = { } ; const newArray = [ ] ; for ( let i = 0 , l = item . length ; i < l ; ++ i ) { if ( ! { } . hasOwnProperty . call ( u , item [ i ] ) ) { newArray . push ( item [ i ] ) ; u [ item [ i ] ] = 1 ; } } return newArray ; }
Make an array unique by removing duplicate entries.
@param item {Array}
@returns {Array}
Make an array unique by removing duplicate entries .