Comment

Comment by decadentcactus

If it helps, this type of problem has come up precisely zero times ever. Use a built in function, loop through the array, and if in the future it's running slow, _then_ optimise

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton