Skip to content

cloneFnJSON

描述

使用 JSON 序列化克隆函数结果。

示例

ts
import { cloneFnJSON } from '@base-web-kits/base-tools-vue';

const cloned = cloneFnJSON(() => ({ a: 1 }));
```来源

[VueUse](https://vueuse.org/functions/cloneFnJSON/)