标签相关文章

这个标签暂时没有关联文章。

ABOUT / Jemius

让思考有迹可循。这里收藏值得反复思考的问题,也把学习、实践和偶然的发现整理成可以回看的记录。

TypeScript10 行
type Note = { title: string; tags: string[] }
 
const notebook: Note[] = [
  { title: '记录一个问题', tags: ['思考'] },
  { title: '整理一种方法', tags: ['实践'] },
]
 
function revisit(topic: string) {
  return notebook.filter(({ tags }) => tags.includes(topic))
}
ABOUT ME

关于我

头像

Jemius

𝚅𝚒𝚋𝚎 𝙲𝚘𝚍𝚒𝚗𝚐⌨︎❤

  • github.png
  • bilibili.png