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