Closed ivorblockley closed 6 years ago
I suspect all three approaches will be similar in real-world performance, although it would be nice to have some speed benchmarks to test this. Otherwise the choice probably comes down to stylistic preference. #92 introduces an ES6 feature whereas this merge request along with #91 doesn't, which might also be a consideration.
map.keys()
with a for of
loop isn't supported in IE and Safari versions <10. This version is as simple and does the job without upping the requirements, so I'll go with that. Looking at the code, performance shouldn't be affected. Thanks a lot for working on this!
Another alternative to pick from. This is the "keep it simple approach".