Skip to content

Commit

Permalink
guard for the presence of getTime
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Sep 24, 2013
1 parent ee928ca commit 98f278a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function copy (src) {
dst = [];
}
else if (isDate(src)) {
dst = new Date(src.getTime());
dst = new Date(src.getTime ? src.getTime() : src);
}
else if (isRegExp(src)) {
dst = new RegExp(src);
Expand Down

0 comments on commit 98f278a

Please sign in to comment.