2 ms·
What do you mean by bastardizing? I'm not sure when I'd ever use Array.keys, but it seems like it could be potentially useful -- and more importantly, totally i
by gkoberger 13y ago
What do you mean by bastardizing? I'm not sure when I'd ever use Array.keys, but it seems like it could be potentially useful -- and more importantly, totally in the spirit of JavaScript.
- cheald 13y agoIt seems like a poorly-chosen name. I like the idea of being able to get an indexes iterator, but I'd probably have named it `indexes()` rather than `keys()`, as the latter tends to be much more strongly associated with dictionaries.