A value of 0 does not pass NotEmpty validation

Version 3.6 Pro, build 131108
single dhtmlx.js file

Validation rules are defined in dhtmlxform.js and dhtmlxValidation.prototype.isNotEmpty has this implementation: return (value instanceof Array?value.length>0:!value == '');

Also, rules are defined (and completely replace rules from dhtmlxform.js in a single dhtmlx.js file) in dhtmlxgrid_validation.js where implementation of dhtmlxValidation.prototype.isNotEmpty is different: return !value == '';

I’m having a problem with a simple value of ‘0’ that does not pass this validation:
(from Chrome Dev Tool)
1==’’

false
0==’’
true

The code above may be adjusted like this: return !(''+value) == '';

Hi

works fine localy, console.log(typeof value) says it string

Can you please elaborate? I don’t understand what exactly you are trying to convene here.