Software Development | JavaScript | Applescript | Productivity Enthusiast
A web developer from Los Angeles. I build accessible, inclusive products and digital experiences for a variety of clients. Also interested in how code can be used for workspace automation & productivity optimization.
Markdown supported · ⌘↵ to post
Similarly you can make use of Object.keys() for an object just like in PHP's associated array.
Mudit Tiwari
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 :)