We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9582e21 commit f05239dCopy full SHA for f05239d
src/helpers.tsx
@@ -36,10 +36,8 @@ export function stringToBoolean(value: string): boolean {
36
return value.toLowerCase() !== 'false' && value !== '0';
37
}
38
39
-export function stringToProperty(obj: object): (value: string) => boolean {
40
- return (value: string): boolean => {
41
- return obj[value];
42
- };
+export function stringToProperty(obj: object): (value: string) => any {
+ return (value: string): any => obj[value];
43
44
45
export function getSearchParams(
0 commit comments