摘要: export const deepClone = (obj: object) => { return JSON.parse(JSON.stringify(obj)); } 阅读全文
posted @ 2024-03-29 11:43 bitterteaer 阅读(12) 评论(0) 推荐(0) 编辑
摘要: const levenshteinDistance = (str1: string, str2: string) => { const len1 = str1.length; const len2 = str2.length; const matrix: Array<number[]> = []; 阅读全文
posted @ 2024-03-29 11:42 bitterteaer 阅读(5) 评论(0) 推荐(0) 编辑