Skip to content

clone

deepClone

深克隆对象

ts
import { deepClone } from 'dlib-utils';

const a = { f: 1, c: 2 };
const b = deepClone(a);