correct boolean type

This commit is contained in:
Laurent Mazet 2020-09-13 22:09:16 +02:00
parent 94a76b3f5c
commit aee069d6f8
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@
/* cast from string to type */
if (type === "boolean") {
value = (value) ? true : false;
value = (value === "true");
} else if (type === "number") {
value = Number(value);
} else if (type === "object") {