How JavaScript Maps Can Make Your Code Faster

added by JavaScript Kicks
8/6/2019 7:21:49 AM

665 Views

Why - and when - to ditch regular JavaScript objects Among the goodies introduced to JavaScript in ES6, we saw the introduction of Sets and Maps. Unlike ordinary objects and arrays, these are 'keyed collections'. That means their behaviour is subtly different and - used in the right contexts - they sometimes offer considerable performance advantages.


0 comments