pxxlib-utils
v1.0.0
Published
实现 JavaScript 引用对象的深拷贝功能
Downloads
60
Readme
pxxlib-utils
实现 JavaScript 引用对象的深拷贝功能
使用者指南
通过 npm 下载安装代码
$ npm install --save pxxlib-utils
如果你是 node 环境
var { clone } = require('pxxlib-utils');
clone({ a: 1 });
如果你是 webpack 等环境
import { clone } from 'pxxlib-utils';
clone({ a: 1 });
如果你是浏览器环境
<script src="node_modules/pxxlib-utils/dist/index.aio.js"></script>
<script>
clone({ a: 1 });
</script>
贡献者指南
首次运行需要先安装依赖
$ npm install
一键打包生成生产代码
$ npm run build
运行单元测试:
$ npm test