Browse Source

Test for Dates with `instanceof`.

pull/506/head
jeff 7 years ago
parent
commit
074ada79e4
  1. 2
      papaparse.js

2
papaparse.js

@ -408,7 +408,7 @@ @@ -408,7 +408,7 @@
if (typeof str === 'undefined' || str === null)
return '';
if (str.constructor === Date)
if (str instanceof Date)
return JSON.stringify(str).slice(1, 25);
str = str.toString().replace(quoteCharRegex, _quoteChar + _quoteChar);

Loading…
Cancel
Save