I have an array of data that I am using to create a drop down logic with.But there is a series of duplicate values when I create the drop-down using :
<select>
` `{
this.state.statistic_table.map((obj) => {
return <option value={obj.period}>{obj.period}</option>
})
}</select>
The long list of arrays contains a number of duplicate period values which are actually months. So in the dropdown I would get each and every value. I would like to eliminate the duplicates from the dropdown. How could I achieve that? Thanks