function getUniquePropertyValues(arr, accessor) {
  const setOfValues = new Set(arr.map(accessor));
  return Array.from(setOfValues);
}
Get unique property values from an array.
@param {Array} arr Array of data.
@param {string} propertyName Prop name.
@returns {Array} Array of unique values.