mapとfilterを使っただぶり削除の処理
const noDuplicationTimeList = resultEntries
.map((elem) => elem)
?.filter(
(element, index, self) => self.findIndex((e) => e === element) === index
)
const categoryName = resultEntries
?.filter(
(element, index, self) =>
self.findIndex((e) => e === element) ===
index
)
.map((elem) => elem)