deep-copy-ts:用于TypeScript的Deep-copy实用程序功能

时间:2021-02-15 11:54:25
【文件属性】:
文件名称:deep-copy-ts:用于TypeScript的Deep-copy实用程序功能
文件大小:122KB
文件格式:ZIP
更新时间:2021-02-15 11:54:25
TypeScript 深度复制 基于TypeScript的Deep-copy(aka克隆)实用程序功能。 在探索。 安装 npm i deep-copy-ts 用法 import { deepCopy } from "deep-copy-ts" ; const obj = { // Primitive value a : 1 , b : "b" , c : { a : [ { a : "caa1" } , { a : "caa2" } ] , } , d : null , e : undefined , f : true , // Reference value g : [ 1 , 2 , 3 ] , h : ( ) => { return "h" ; } , i : { a : 1 , b : "i.b" , c :
【文件预览】:
deep-copy-ts-master
----.travis.yml(315B)
----.babelrc(169B)
----package.json(1KB)
----pnpm-lock.yaml(151KB)
----tslint.json(456B)
----LICENSE(1KB)
----package-lock.json(238KB)
----src()
--------cloneArrayBuffer.ts(392B)
--------cloneTypedArray.test.ts(6KB)
--------cloneDate.test.ts(342B)
--------index.test.ts(1KB)
--------cloneRegexp.ts(350B)
--------cloneDataView.ts(405B)
--------cloneTypedArray.ts(2KB)
--------cloneRegexp.test.ts(469B)
--------index.d.ts(327B)
--------cloneDataView.test.ts(517B)
--------cloneDate.ts(240B)
--------cloneArrayBuffer.test.ts(416B)
--------index.ts(2KB)
----.npmignore(136B)
----tsconfig.json(5KB)
----.gitignore(2KB)
----.unit.jest.config.js(95B)
----README.md(2KB)
----.editorconfig(118B)
----.vscode()
--------spellright.dict(13B)
--------settings.json(125B)

网友评论