一个学习用的仓库,实现各种常见的代码,包括算法 / 设计模式 / 函数式 / 数据结构 / 工具函数
- quickSort 快速排序
- bubbleSort 冒泡排序
- Functor 函子
- Monoid 幺半群
- Semigroup 半群
- singleton 单例
- eventEmitter 发布订阅
- linkedList 链表
- stack 栈
- queue 队列
- heap 堆
- Array 复刻数组的api
- compose 组合
- concurryLimit 并发控制
- curry 柯里化
- debounce 防抖
- extends 继承
- Flow 一道手写题
- foldMap 函数式/对盒子进行组合
- Function apply/call/bind
- immer 最简单的仿immer,暂时不支持嵌套
- intanceof 判断继承
- LazyMan 一道手写题
- new 仿new
- pipe 函数组合
- Promise 仿Promise的各种api
- throttle 节流