explore front-end mystery 前端探秘
实现一个完全符合 Promise A+ 规范的 Promise ✔
包含实例方法 then, catch, finally 和静态方法 resolve, reject, all, race, allSettled
模拟 async/await ✔
实现 node EventEmitter ✔
包含 on, off, once, prependListener, setMaxListeners 等方法
instanceof 运算符原理 ✔
new 运算符原理 ✔
JavaScript 类型检测
强大的 reduce
防抖 ✔
节流
继承
事件委托 ✔
call, apply, bind ✔
扁平化数组
模拟私有属性 ✔
redux
深度克隆 ✔
ajax
处理服务器返回 null
koa 中间件机制 ✔
curry ✔
并发限制调度器 scheduler ✔
一些函数工具