JSFiddle - React, Tailwind, and code Playground
JavaScript
var meters2degress = function(x,y) {
var lon = x * 180 / 20037508.34 ;
var lat = Math.atan(Math.exp(y * Math.PI / 20037508.34)) * 360 / Math.PI - 90;
return [lon, lat]
}
y = 4572050.578074148
x = -13419661.132441366
console.log(meters2degress(x, y))