---
title: "Discussion on \"Find non-duplicated items in list\" | Hashnode"
description: "Discussion on \"Find non-duplicated items in list\". Imagine this: you have a list of many items you bought on supermarket and you want to know which ones are not duplicated.\nWith indexOf and lastIndexOf, we can do that easily.\nindexOf will return the first occurrence of the item in the array.\nlastInde..."
url: "https://hashnode.com/posts/find-non-duplicated-items-in-list/5fb6272308ea5d7167d6f87a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Find non-duplicated items in list](https://murilobd.hashnode.dev/find-non-duplicated-items-in-list?utm_source=hashnode&utm_medium=feed)

Imagine this: you have a list of many items you bought on supermarket and you want to know which ones are not duplicated. With indexOf and lastIndexOf, we can do that easily. indexOf will return the first occurrence of the item in the array. lastInde...

Nov 19, 2020 · 2 min read · murilobd.hashnode.dev  
Updated Nov 27, 2020  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#2articles1week-1](https://hashnode.com/tag/2articles1week-1)

## Written by

[Murilo Boareto Delefrate](https://hashnode.com/@murilobd)

@murilobd · Lyon, France

  
[View profile](https://hashnode.com/@murilobd)

Software Engineer - Javascrtipt, PHP

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
