Why does Object.keys return an Array instead of a Set?

#!/JoePea joe at trusktr.io
Sat Oct 17 01:50:25 UTC 2020


Sets are faster, even for tiny lists of four items. See the perf tests
(tested in Chrome):

https://twitter.com/trusktr/status/1315848017535098880

https://twitter.com/trusktr/status/1317281652540731392

#!/JoePea


More information about the es-discuss mailing list