Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

### clone
实现JavaScript引用对象的深拷贝功能

### 使用者指南

通过npm下载安装代码

```bash
$ npm install --save clone
```

如果你是node环境

```js
var { clone } = require('clone');

clone({a: 1})
```

如果你是webpack等环境

```js
import { clone } from 'clone';

clone({a: 1})
```

如果你是浏览器环境

```html
<script src="node_modules/clone/dist/index.aio.js"></script>
<script>
    clone({a: 1})
</script>
```

### 贡献者指南
首次运行需要先安装依赖

```bash
$ npm install
```

一键打包生成生产代码

```bash
$ npm run build
```

运行单元测试:

```bash
$ npm test

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages