chronoshift
Advanced tools
Comparing version 0.5.4 to 0.5.5
@@ -738,4 +738,3 @@ 'use strict'; | ||
function isDate(d) { | ||
return typeof d === 'object' && | ||
d.constructor.name === 'Date'; | ||
return !!(d && d.toISOString); | ||
} | ||
@@ -742,0 +741,0 @@ |
export function isDate(d) { | ||
return typeof d === 'object' && | ||
d.constructor.name === 'Date'; | ||
return !!(d && d.toISOString); | ||
} |
@@ -8,4 +8,5 @@ import { expect } from "chai"; | ||
expect(isDate([])).to.equal(false); | ||
expect(isDate(null)).to.equal(false); | ||
}); | ||
}); | ||
}); |
{ | ||
"name": "chronoshift", | ||
"version": "0.5.4", | ||
"version": "0.5.5", | ||
"description": "A tiny library for shifting time with timezones", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
774747
7032