De-Duplicate List
Removes duplicates from any list passed as input.
Description
This shortcut is inspired by @atnbueno’s series of JavaScript one-liners!
How to use
Run this using a Run Shortcut
action with your array/list as input. The output will be your list removed of any duplicates.
Unfortunately, this will not work with image or media lists. However, I will be working on another Shortcut that might be able to do the task instead.
Note
Feel free to use this code wherever you want, no credit is needed!
Latest Release Notes
1.2 - March 15, 2021, 6:51 p.m.
Changed the dictionary action so that your list would not lose its original structure.
Version history