1.0.0 • Published 2 years ago

chenwei0725 v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

3个好用的函数

通过 npm 安装

$ npm i chenwei0725

需要引入

const cw = require('chenwei0725');

1. 获取指定位数的斐波那契数列

const cw = require('chenwei0725');

// 调用方法
const result = cw.getFeb(10);

2. 封装排序的方法

const arr = [23, 22, 45, 11, 20, 19, 35];

const cw = require('chenwei0725');

// 调用方法
cw.sortBig(arr);

3. 使用递归的方式实现深拷贝

const cw = require('chenwei0725');

// 调用方法  target: 目标对象
const newObj = cw.cloneDeep(target);
祝您愉快!