Better switch value
| @@ -45,9 +45,7 @@ export function convertValueType(value, type) { | ||
| 45 | 45 | return value; |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | type =switch (type.trim().toLowerCase();) { |
| 49 | - | |
| 50 | - switch (type) { | |
| 51 | 49 | case 'string': |
| 52 | 50 | case 'str': |
| 53 | 51 | return String(value); |