1function listStrings(list: string[], includeAnd: boolean = false): string {
2 if (includeAnd && list.length > 1) {
3 return listStrings(list.slice(0, -1)) + ' and ' + listStrings(list.slice(-1));
5 return "'" + list.join("', '") + "'";
8function filterObject(obj, predicate) {
9 return Object.fromEntries(Object.entries(obj).filter(([key, value]) => predicate(key, value)));
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list