Skip to content

jslib-book/clone1

Repository files navigation

功能介绍 example workflow

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

使用者指南

通过 npm 下载安装代码

$ npm install --save clone

如果你是 node 环境

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

clone({ a: 1 });

如果你是 webpack 等环境

import { clone } from 'clone';

clone({ a: 1 });

如果你是浏览器环境

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

贡献者指南

首次运行需要先安装依赖

$ npm install

一键打包生成生产代码

$ npm run build

运行单元测试:

$ npm test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published