this is my js helper
npm install wzx-js-helper> 简单,高效 ,拒绝一切重复劳动!
 
这是一个多功能js库,我是用来解决复杂编写一些函数的,以前每次新建项目,然后写一些数组,字符串,对象之类的方法
都会花不少时间,其实里面逻辑大体一样,自己在项目里可以进行封装,并且在项目里面使用,但是这样的话,公司重新开
个项目的话,如果还是遇到了同样的方法,不免我要复制或者重写一遍,所以我需要自己维护一套js library
Pure functions 这里封装了常用的方法 提高效率,减少重复编写.
``ts`
import {shallowClone,deepClone} from "wzx-js-helper"
//浅拷贝
const sCopy = shallowClone({a:1,b:"w"})
//深拷贝
const dCopy = deepClone({a:1,b:"w"})
- shallowClone 浅拷贝.deepClone
- 深拷贝.
使用 npm 安装, 运行
`sh`
$npm install wzx-js-helper`
使用 pnpm 安装,运行shell`
$pnpm install wzx-js-helper`
使用 yarn 安装,运行shell``
$yarn add wzx-js-helper
ISC