osjs-server
osjs-server copied to clipboard
Replace Object.keys + Array.reduce with Object.fromEntries
Example:
// This
Object.keys(obj)
.reduce((current, accumulator) => ({...accumulator, [current]: obj[current]}), {});
// Vs
Object.fromEntries(Object.keys(obj)
.map(key => ([key, obj[key])))
Since Node 10 is not out of LTS This goes on the backburner.