Commit 025d3217 authored by Tristan Cavelier's avatar Tristan Cavelier

isDate function compacted

parent 77a354a9
......@@ -51,10 +51,7 @@
* @return {Boolean} true if success, else false
*/
function isDate(date) {
if (!isNaN((new Date(date === null ? undefined : date)).getTime())) {
return true;
}
return false;
return !isNaN((new Date(date === null ? undefined : date)).getTime());
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment