Skip to content

jslib-book/utils

Repository files navigation

@jslib-book/utils example workflow

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

使用者指南

通过 npm 下载安装代码

$ npm install --save @jslib-book/utils

如果你是 node 环境

var { clone } = require('@jslib-book/utils');

clone({ a: 1 });

如果你是 webpack 等环境

import { clone } from '@jslib-book/utils';

clone({ a: 1 });

如果你是浏览器环境

<script src="node_modules/@jslib-book/utils/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