TLDR Dev · QUICK LINKS
ONE MAP KEY, ONE LOOKUP
Summary from the TLDR Dev newsletter
To improve performance and code clarity, perform a single map lookup and reuse the result instead of making separate calls to check for a key's existence and then fetch its value.