Map.getOrInsert: Stop Writing the has/get/set Dance
Every JavaScript codebase has this pattern somewhere. Usually in a dozen places. You want to group things by a key, so you reach for a Map, and then you write the same three lines you always write: ch
grimicorn.hashnode.dev5 min read