daishi, 5 months ago @indutny Good catch. Some thing like this? https://ray.so/#theme=falcon&title=removeDuplicates+with+a+custom+equalitfy+fn&language=typescript&code=Y29uc3QgcmVtb3ZlRHVwbGljYXRlcyA9IDxUPigKICBhcnI6IFRbXSwKICBlcXVhbDogKGE6IFQpID0-IChiOiBUKSA9PiBib29sZWFuLAopOiBUW10gPT4gewogIGNvbnN0IG1hcCA9IG5ldyBNYXAoYXJyLm1hcCgoaXRlbSkgPT4gW2l0ZW0sIGFyci5maW5kSW5kZXgoZXF1YWwoaXRlbSkpXSkpOwogIHJldHVybiBhcnIuZmlsdGVyKChpdGVtLCBpbmRleCkgPT4gaW5kZXggPT09IG1hcC5nZXQoaXRlbSkpOwp9&width=null
@indutny Good catch. Some thing like this? https://ray.so/#theme=falcon&title=removeDuplicates+with+a+custom+equalitfy+fn&language=typescript&code=Y29uc3QgcmVtb3ZlRHVwbGljYXRlcyA9IDxUPigKICBhcnI6IFRbXSwKICBlcXVhbDogKGE6IFQpID0-IChiOiBUKSA9PiBib29sZWFuLAopOiBUW10gPT4gewogIGNvbnN0IG1hcCA9IG5ldyBNYXAoYXJyLm1hcCgoaXRlbSkgPT4gW2l0ZW0sIGFyci5maW5kSW5kZXgoZXF1YWwoaXRlbSkpXSkpOwogIHJldHVybiBhcnIuZmlsdGVyKChpdGVtLCBpbmRleCkgPT4gaW5kZXggPT09IG1hcC5nZXQoaXRlbSkpOwp9&width=null