// 搜索方法
function searchKeys(searchParam: string): string[] {
const keys: string[] = Object.keys(searchData).filter((key: string) => {
const keywords: string[] = searchData[key];
return keywords.some((keyword: string) => keyword.includes(searchParam));
});
return keys;
}
请问,想要忽略大小写,请问应该如何优化呢?