# fe-handwriting **Repository Path**: markraostudio/fe-handwriting ## Basic Information - **Project Name**: fe-handwriting - **Description**: js 函数库 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-06-27 - **Last Updated**: 2025-06-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 谢谢你来啦 也许你我素未谋面,但很可能相见恨晚。希望这里能成为你的栖息之地,我愿和你一起收获喜悦,奔赴成长。 这里每年都会分享不少于`200+篇`精选优质好文,如果你想第一时间获取文章内容,可以前往[【公众号】](#公众号),也可以加我[【微信】](#公众号)噢。

微信群 公众号 公众号 公众号 投稿

## 文章详解 1. [就因为JSON.stringify,我的年终奖差点打水漂了](https://mp.weixin.qq.com/s/5Ik0LXw5MOhVACWpegDCxA) 2. [因为实现不了Promise.all,一场面试凉凉了](https://mp.weixin.qq.com/s/-YlCc-AsQ19sTHtsMyG-3g) ## 基础篇 1. [compose](https://github.com/qianlongo/fe-handwriting/blob/master/1.compose.js) 2. [模拟instanceOf](https://github.com/qianlongo/fe-handwriting/blob/master/2.instanceOf.js) 3. [多维数组拍平](https://github.com/qianlongo/fe-handwriting/blob/master/3.flat.js) 4. [setTimeout模拟setInterval](https://github.com/qianlongo/fe-handwriting/blob/master/4.setTimeout-interval.js) 5. [setInterval模拟setTimeout](https://github.com/qianlongo/fe-handwriting/blob/master/5.setInterval-timeout.js) 6. [手写call](https://github.com/qianlongo/fe-handwriting/blob/master/6.call.js) 7. [手写aplly](https://github.com/qianlongo/fe-handwriting/blob/master/7.apply.js) 8. [数组去重](https://github.com/qianlongo/fe-handwriting/blob/master/8.uniqueArray.js) 9. [实现一个Promise.all](https://github.com/qianlongo/fe-handwriting/blob/master/9.promise.all.js) 10. [实现一个Promise.race](https://github.com/qianlongo/fe-handwriting/blob/master/10.promise.race.js) 11. [手写Promise](https://github.com/qianlongo/fe-handwriting/blob/master/11.promise.js) 12. [正则模拟实现trim方法](https://github.com/qianlongo/fe-handwriting/blob/master/12.trim.js) 13. [手机号 3-3-4分割](https://github.com/qianlongo/fe-handwriting/blob/master/13.mobile-334.js) 14. [手写一个new](https://github.com/qianlongo/fe-handwriting/blob/master/14.new.js) 15. [手写一个深拷贝](https://github.com/qianlongo/fe-handwriting/blob/master/15.deepClone.js) 16. [千分位格式化数字](https://github.com/qianlongo/fe-handwriting/blob/master/27.formatPrice.js) 17. [Object.create](https://github.com/qianlongo/fe-handwriting/blob/master/44.Object.create.js) 18. [isCyclic判断循环引用](https://github.com/qianlongo/fe-handwriting/blob/master/51.js) 19. [手写JSON.stringify](https://github.com/qianlongo/fe-handwriting/blob/master/50.JSON.stringify.js) 20. [并行限制的Promise](https://github.com/qianlongo/fe-handwriting/blob/master/49.scheduler.js) 21. [判断数据类型](https://github.com/qianlongo/fe-handwriting/blob/master/46.getType.js) 22. [发布订阅](https://github.com/qianlongo/fe-handwriting/blob/master/45.EventEmitter.js) 23. [debounce](https://github.com/qianlongo/fe-handwriting/blob/master/52.debounce.html) 24. [throttle](https://github.com/qianlongo/fe-handwriting/blob/master/53.throttle.js) 25. [bind](https://github.com/qianlongo/fe-handwriting/blob/master/55.bind.js) 26. [curry](https://github.com/qianlongo/fe-handwriting/blob/master/54.curry.js) 27. [templateRender](https://github.com/qianlongo/fe-handwriting/blob/master/56.templateRender.js) 28. [dom2json](https://github.com/qianlongo/fe-handwriting/blob/master/57.dom2json.html) 29. [list2tree](https://github.com/qianlongo/fe-handwriting/blob/master/59.list2tree.js) 30. [tree2list](https://github.com/qianlongo/fe-handwriting/blob/master/60.tree2list.js) 31. [sleep](https://github.com/qianlongo/fe-handwriting/blob/master/61.sleep.js) 32. [sum](https://github.com/qianlongo/fe-handwriting/blob/master/63.sum.js) 33. [findCommonParent](https://github.com/qianlongo/fe-handwriting/blob/master/68.findCommonParent.html) 34. [expireStorage](https://github.com/qianlongo/fe-handwriting/blob/master/69.expireStorage.js) 35. [reduceMap](https://github.com/qianlongo/fe-handwriting/blob/master/70.reduceMap.js) 36. [firstPromise](https://github.com/qianlongo/fe-handwriting/blob/master/71.firstPromise.js) ## 排序篇 1. [快速排序](https://github.com/qianlongo/fe-handwriting/blob/master/17.quick-sort.js) 2. [冒泡排序](https://github.com/qianlongo/fe-handwriting/blob/master/18.bubble-sort.js) 3. [选择排序](https://github.com/qianlongo/fe-handwriting/blob/master/19.select-sort.js) 4. [插入排序](https://github.com/qianlongo/fe-handwriting/blob/master/20.insert-sort.js) ## 算法篇 ### 数组 1. [两数之和](https://github.com/qianlongo/fe-handwriting/blob/master/21.two-sum.js) 2. [合并两个有序数组](https://github.com/qianlongo/fe-handwriting/blob/master/22.merge-sorted-array.js) 3. [两个数组的交集](https://github.com/qianlongo/fe-handwriting/blob/master/23.intersection.js) 4. [删除有序数组的重复项](https://github.com/qianlongo/fe-handwriting/blob/master/28.remove-duplicates.js) 5. [两个数组之间的交集2](https://github.com/qianlongo/fe-handwriting/blob/master/29.intersect2.js) 6. [只出现一次的数字](https://github.com/qianlongo/fe-handwriting/blob/master/30.singleNumber.js) 7. [判断数组中是否有重复项](https://github.com/qianlongo/fe-handwriting/blob/master/31.contains-duplicate.js) 8. [移动零](https://github.com/qianlongo/fe-handwriting/blob/master/32.move-zeroes.js) 9. [二分查找](https://github.com/qianlongo/fe-handwriting/blob/master/41.hafl-search.js) 10. [搜索插入位置](https://github.com/qianlongo/fe-handwriting/blob/master/42.search-insert.js) 11. [724. 寻找数组的中心下标](https://github.com/qianlongo/fe-handwriting/blob/master/43.pivot-index.js) 12. [LRU最近最少使用](https://github.com/qianlongo/fe-handwriting/blob/master/48.LRU2.js) 13. [菲波那切数列](https://github.com/qianlongo/fe-handwriting/blob/master/62.fib.js) 14. [有效的括号](https://github.com/qianlongo/fe-handwriting/blob/master/67.validParentheses.js) ### 字符串 1. [验证回文串](https://github.com/qianlongo/fe-handwriting/blob/master/24.valid-palindrome.js) 2. [删除一个字符串,是否能成为回文](https://github.com/qianlongo/fe-handwriting/blob/master/25.valid-palindrome2.js) 3. [添加与搜索单词 - 数据结构设计](https://github.com/qianlongo/fe-handwriting/blob/master/26.word-dictionary.js) 4. [反转字符串](https://github.com/qianlongo/fe-handwriting/blob/master/33.reverse-string.js) 5. [字符串中的第一个唯一字符](https://github.com/qianlongo/fe-handwriting/blob/master/34.first-uniq-char.js) 5. [有效的字母异位词](https://github.com/qianlongo/fe-handwriting/blob/master/35.is-anagram.js) 6. [字符串转数字](https://github.com/qianlongo/fe-handwriting/blob/master/36.my-atoi.js) 7. [整数反转](https://github.com/qianlongo/fe-handwriting/blob/master/37.reverse-num.js) 8. [实现 strStr() 函数。](https://github.com/qianlongo/fe-handwriting/blob/m◊aster/38.str-str.js) 9. [最长公共前缀](https://github.com/qianlongo/fe-handwriting/blob/master/39.longest-common-prefix.js) 10. [比较版本号](https://github.com/qianlongo/fe-handwriting/blob/master/40.compare-version.js) ### 链表 1. [奇偶链表](https://github.com/qianlongo/fe-handwriting/blob/master/16.odd-even-linked-list.js) ## 结尾 ![](./imgs/wx.png)