Find the unique items in a list

Filter out duplicate rows of text.

Face with waiting expression Nothing to see yet!

Loading takeymakey...
TakeyMakey code
Want this tool to do something else? Edit the code below and make it do whatever you want.
({
  take: [{ type: "list" }, { type: "toggle", label: "Case sensitive" }],
  make: ([list, toggle]) => {
    const compare = toggle ? list : list.map((w) => w.toLowerCase())

    return list.filter(
      (t, i) => compare.indexOf(toggle ? t : t.toLowerCase()) === i
    )
  },
})