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.
2 parents 892827d + 3a4ce1a commit fc758ecCopy full SHA for fc758ec
lib/modifiers/type.js
@@ -17,7 +17,7 @@ function modify(data, model) {
17
18
switch (model.type.toLowerCase()) {
19
case 'string':
20
- parsed = String(data);
+ parsed = (data) ? String(data) : '';
21
break;
22
case 'number':
23
if (!isNaN(Number(data))) {
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "modelate",
3
- "version": "0.2.7",
+ "version": "0.2.8",
4
"description": "A simple data modeling tool for NodeJS",
5
"main": "index.js",
6
"scripts": {
0 commit comments