Open sc-brikis opened 8 years ago
Every empty value in excel is converted to 0 due to fact that:
isNaN('') => false
and line 41: _data[k.trim()] = isNaN(value) ? value : +value
makes empty record to 0.
I suggest following to check if value is number or not:
(isNaN(value) || value === '') ? value : +value;
you can find working sample here.
Is there a solution for this?
Every empty value in excel is converted to 0 due to fact that:
isNaN('') => false
and line 41: _data[k.trim()] = isNaN(value) ? value : +value
makes empty record to 0.
I suggest following to check if value is number or not:
(isNaN(value) || value === '') ? value : +value;
you can find working sample here.