1
0
mirror of https://github.com/actions/labeler synced 2026-05-09 03:41:01 +02:00
This commit is contained in:
David Kale
2020-09-08 13:25:36 -04:00
parent e4246d2b5b
commit 91fcbb0108
4227 changed files with 416837 additions and 457884 deletions

View File

@@ -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;
};