Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/is-date-object/index.js')
-rw-r--r--node_modules/is-date-object/index.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/node_modules/is-date-object/index.js b/node_modules/is-date-object/index.js
index fe0d7ecd7..285ec4c2e 100644
--- a/node_modules/is-date-object/index.js
+++ b/node_modules/is-date-object/index.js
@@ -1,7 +1,7 @@
'use strict';
var getDay = Date.prototype.getDay;
-var tryDateObject = function tryDateObject(value) {
+var tryDateObject = function tryDateGetDayCall(value) {
try {
getDay.call(value);
return true;
@@ -15,6 +15,8 @@ var dateClass = '[object Date]';
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
module.exports = function isDateObject(value) {
- if (typeof value !== 'object' || value === null) { return false; }
+ if (typeof value !== 'object' || value === null) {
+ return false;
+ }
return hasToStringTag ? tryDateObject(value) : toStr.call(value) === dateClass;
};