UNPKG

gqty

Version:

The No-GraphQL Client for TypeScript

13 lines (8 loc) 310 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const flatted = require('flatted'); const deepCopy = (value) => ( // structuredClone does not support WeakRef, fallback to serialization. Object.freeze(flatted.parse(flatted.stringify(value))) ); exports.deepCopy = deepCopy;