I do not agree that everything should be handled with standard libraries. It's better for these things to be modular and versioned, instead of them being pulled from a big bloated standard library.
The code clearly does what was being asked in a very simple and non-broken way.
Perhaps the issue here is that non-JavaScript engineers are used to kitchensink standard libraries and avoid mixing and matching to get the best experience the ecosystem offers.
The problem with mixing and matching libs is that no two JS devs do it the same. Some will even re-build the same lib that has already been built by hundreds of JS devs because NIH.
In your universe, engineers do not talk and accidentally decide to use two libraries that do the same thing within a project.
I work with JavaScript and I rarely see this happening.
Why should people use JS with a non-standard library when dictionaries come built into better languages?