AndyWang′s Blog
About Archive Category Tags
Home
About
Archive
Category
Tags
Blog banner image
head shot

Andy Wang

Web Developer

Taiwan, Hsinchu City

Articles

42

Tags

55

Categories

11

RECENT POSTS

  • 關於 Domain-Driven Design (DDD)

    2025年9月20日
  • CA: Data Transfer Object (DTO)

    2025年9月11日
  • Astro 圖片優化策略

    2025年9月8日
  • Claude Code CLI:真正的 AI 開發代理人

    2025年8月7日
  • Leetcode 326. Power of Three

    2025年7月20日

Categories

心得
7
Blog
4
Tools
3
SystemDesign
4
Performance
5
React
5
DevOps
3
TypeScript
4
JavaScript
5
LeetCode
1
Git
1

TAGS

AI Algorithm Astro Asynchronous Blog CSS Claude Clean Code Clean-Architecture Compatibility Complexity Cursor Cursor-Rules DDD DP DTO Data-Structure Deployment Docker ESLint Elevator-Pitch Enums ErrorBoundary Frontend Generics Git HTML Homebrew JavaScript Jekyll Junior Kubernetes Leetcode Life Linter MECE Notes OOP Package Performance React Recursion Redux Retro SOLID SWR TypeScript Unit-Test Vitest X-Driven blog jQuery map performance 心得
Archive Tags map

map

1 posts with this tag

[TS] Set、flatMap 優化資料搜尋
[TS] Set、flatMap 優化資料搜尋
2024年12月30日
TypeScript
Notes
/
TypeScript +1
Notes
/
TypeScript
/
map
最近在工作中遇到需要從複雜的資料結構中提取特定資料的問題,面對這種多層結構的資料直接暴力搜尋效能明顯不太理想,正確的方式應該是先將資料做扁平化處理,再透過更高效的搜尋策略來提升效能。
6 mins read
|
1277 words
[TS] Set、flatMap 優化資料搜尋

Copyright © 2021-2025 AndyWang.

Content licensed under CC BY-SA 4.0 unless otherwise noted.