4 ms·
You can do that by nesting Array.prototype.map in the parameter for Object.fromEntries in an easy way (probably not as optimized as a built-in, but th
by moritzwarhier 3y ago
You can do that by nesting
Array.prototype.map
in the parameter for
Object.fromEntries
in an easy way (probably not as optimized as a built-in, but that might be irrelevant for most cases, since its just a duplicated iteration, not quadratic)