MCPcopy
hub / github.com/vercel/next.js / mp

Function mp

packages/next/src/compiled/@vercel/og/index.edge.js:14497–14509  ·  view source on GitHub ↗
(t, n)

Source from the content-addressed store, hash-verified

14495 return t && Bu(e.prototype, t), n && Bu(e, n), e;
14496 }
14497 var mp = function e(t, n) {
14498 if (typeof t != "object" || t === null)
14499 return t;
14500 var r = new t.constructor();
14501 for (var i in t)
14502 if (t.hasOwnProperty(i)) {
14503 var o = t[i], s = typeof o;
14504 i === "parent" && s === "object" ? n && (r[i] = n) : o instanceof Array ? r[i] = o.map(function(a) {
14505 return e(a, r);
14506 }) : r[i] = e(o, r);
14507 }
14508 return r;
14509 }, gp = function() {
14510 function e(n) {
14511 n === void 0 && (n = {}), Object.assign(this, n), this.spaces = this.spaces || {}, this.spaces.before = this.spaces.before || "", this.spaces.after = this.spaces.after || "";
14512 }

Callers 1

index.edge.jsFile · 0.85

Calls 2

eFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected