code: 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;
  }
docs: Make an array unique by removing duplicate entries.
  @param item {Array}
  @returns {Array}