I am mostly self taught and unfortunetely dont learn much at work. Can someone help me clear some co

I am mostly self taught and unfortunetely dont learn much at work. Can someone help me clear some confusion. In cloudflare workers I often times find myself in situation where the easiest approach would be having a array of 100 objects representing an ecommerce order. Is it a acceptable solution to just iterate through those 100 objects to find the ones that have key === something? Like I always run from that solution because I think looping through each elelment in the array is just a very bad solution. It feels that way atleast
Was this page helpful?