tiptap/packages/core/src/utilities/removeDuplicates.ts