MCPcopy Create free account
hub / github.com/apitable/apitable / fastCloneDeep

Function fastCloneDeep

packages/core/src/utils/object.ts:26–34  ·  view source on GitHub ↗
(obj: T)

Source from the content-addressed store, hash-verified

24 * Note that circular references will throw Error
25 */
26export function fastCloneDeep<T>(obj: T): T {
27 if (obj == null) {
28 return obj;
29 }
30 if (typeof obj !== 'object') {
31 return obj;
32 }
33 return JSON.parse(JSON.stringify(obj));
34}
35
36// /**
37// * @param gzipBase64Str must be base64 encoded

Callers 12

rollback.tsFile · 0.90
updateFillFieldsPropertyFunction · 0.90
enrichColumnPropertyFunction · 0.90
cellValueToStdValueFunction · 0.90
onSuccessFunction · 0.90
ArchivedRecordsFunction · 0.90
findCycleFunction · 0.90
autoTaskSchedulingFunction · 0.90
associationLineRenderFunction · 0.90
checkErrorLineFunction · 0.90
TimeMachineFunction · 0.90
verificationPermissionFunction · 0.90

Calls 2

stringifyMethod · 0.80
parseMethod · 0.65

Tested by

no test coverage detected