MCPcopy Create free account
hub / github.com/aspnet/AzureSignalR-samples / hydrateObj

Function hydrateObj

aspnet-samples/AspNetForm/Scripts/bootstrap.js:531–545  ·  view source on GitHub ↗
(obj, meta = {})

Source from the content-addressed store, hash-verified

529 }
530 };
531 function hydrateObj(obj, meta = {}) {
532 for (const [key, value] of Object.entries(meta)) {
533 try {
534 obj[key] = value;
535 } catch (_unused) {
536 Object.defineProperty(obj, key, {
537 configurable: true,
538 get() {
539 return value;
540 }
541 });
542 }
543 }
544 return obj;
545 }
546
547 /**
548 * --------------------------------------------------------------------------

Callers 3

bootstrapHandlerFunction · 0.70
triggerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected