Using Array.keys() blew my mind.
Context to why I used Array.keys?
In the eCommerce website, I was building, my goal was to create a select form that held options for the quantity a customer wanted to purchase. The quantity was based on the stock amount of a specific product in whic...
lorenzejay.hashnode.dev3 min read
Mudit Tiwari
Third-Year Under-Graduate
Most bizarre thing about this post is that I literally just learned about this same thing, for a very different reason(I was searching for a substitute for the range method used in Python that returns a list of numbers, from the number passed as the first parameter, till one before the number passed in the second parameter, e.g., range(1, 5) returns [1, 2, 3, 4] if I'm not wrong, I haven't wrote Python for a so long). It's always good to brush up about what I've learned though, really exciting coincidence lol. Good Job describing how it works, btw :)