Closed djsweet closed 2 years ago
push
is definitely faster than unshift
. So I'll use that instead.["a", "b", "a", "b", "c", "b"]
but not ["a", "b", "a", "b", "c", "b", "a"]
.So I'll keep indexes in a separate map, and use those indexes to sort the output according to the first-detected order.
The latest updates on your projects. Learn more about Vercel for Git ↗︎