INNER CODE UNIT · TypeScript

clone

vercel/storage · packages/global-config/src/index.ts:129

export function clone<T = EdgeConfigValue>(edgeConfigValue: T): T {
  // Use JSON.parse and JSON.stringify instead of anything else due to
  // the value possibly being a Proxy object.
  return JSON.parse(JSON.stringify(edgeConfigValue)) as T;
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…