Show both categories and chapter names in hover text

This commit is contained in:
Ajay
2021-12-25 01:09:34 -05:00
parent e4f4a10965
commit ab1520c560
4 changed files with 93 additions and 33 deletions

6
src/utils/arrayUtils.ts Normal file
View File

@@ -0,0 +1,6 @@
export function partition<T>(array: T[], filter: (element: T) => boolean): [T[], T[]] {
const pass = [], fail = [];
array.forEach((element) => (filter(element) ? pass : fail).push(element));
return [pass, fail];
}