function uniq(arr) {
      var entries = {}
      for (var i = 0; i < arr.length; i++) {
        entries[arr[i]] = true;
      }
      return Object.keys(entries);
    }
Filter unique items of an array with strings
@param {string[]} arr
@return {string[]}