(item)
| 46 | } |
| 47 | |
| 48 | function normalize(item) { |
| 49 | return { |
| 50 | leetcodeId: item.num, |
| 51 | sourcePid: item.pid, |
| 52 | slug: item.slug, |
| 53 | titleZh: item.title, |
| 54 | difficulty: difficulty(item.diff), |
| 55 | categoryZh: item.cat, |
| 56 | }; |
| 57 | } |
| 58 | |
| 59 | function itemLabel(item) { |
| 60 | return `#${item.leetcodeId} ${item.titleZh} (${item.slug})`; |
nothing calls this directly
no test coverage detected