Overview
Introduction
Sometimes what you need is the opposite of finding duplicates: isolating the values that only show up once, for example to spot one-off outliers in a dataset.
Unique List Item Finder filters a list down to exactly those single-occurrence items.
What Is Unique List Item Finder?
A singleton extractor: it counts every distinct value in your list and keeps only the ones whose total count is exactly one.
The result preserves the original list order, since each qualifying value only ever occupies a single position.
How Unique List Item Finder Works
The input is split into items using the selected separator, then each distinct value's occurrence count is tallied.
Items whose value's total count equals exactly one are kept in the output; everything else, including values that repeat two or more times, is dropped.
When To Use Unique List Item Finder
Use it to spot one-off values in a dataset, for example a single unusual log entry among many repeated ones.
It's the natural complement to Unique List Item Remover, which keeps the opposite set.
Often used alongside Unique List Item Remover, Repeating List Item Remover and Repeating List Item Finder.
Features
Advantages
- Preserves original list order for the values it keeps.
- Clear, explicit definition of "unique" as exactly-once occurrence, not just first-seen.
Limitations
- Comparison is exact and case-sensitive with no trimming applied, so near-duplicates with stray whitespace won't be merged.
- Doesn't show occurrence counts for the excluded, repeating values; use Repeating List Item Finder for that.
Examples
Best Practices & Notes
Best Practices
- Run Repeating List Item Finder first if you also want to see counts for the values this tool excludes.
- Use a custom separator if your source list isn't newline- or comma-delimited.
Developer Notes
Builds a `Map<string, number>` frequency table over the split items, then filters the original array with `items.filter(item => counts.get(item) === 1)`, which naturally preserves original order since it's a direct filter, not a rebuild.
Unique List Item Finder Use Cases
- Finding one-off outlier entries in a pasted dataset
- Isolating values that need individual review because they don't fit an expected pattern of repetition
- Cleaning survey or log data down to just the singleton responses
Common Mistakes
- Assuming this returns every distinct value; it explicitly excludes anything that repeats, even if you only wanted duplicates removed (see Repeating List Item Remover for that instead).
- Expecting whitespace or case differences to be normalized before comparison; they aren't.
Tips
- If the result seems too short, double check whether some "unique-looking" values actually have hidden duplicate whitespace elsewhere in the list.
- Pair with List Comparer to check whether your unique values also exist in a second reference list.