-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
| const refactorObj = Object.fromEntries( |
const refactorObj = Object.keys(filterData).reduce((acc, key) => {
if (filterData[key] !== null) {
acc[key] = filterData[key];
}
return acc;
}, {} as { [key: string]: string });
a little bit better, but code doesn't look straitforwards as before, maybe yours is better
Metadata
Metadata
Assignees
Labels
No labels