Regenerating node_modules
This commit is contained in:
parent
09b4a82c83
commit
c96f84308a
5488 changed files with 487362 additions and 60779 deletions
22
node_modules/is-date-object/index.js
generated
vendored
Normal file
22
node_modules/is-date-object/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
'use strict';
|
||||
|
||||
var getDay = Date.prototype.getDay;
|
||||
var tryDateObject = function tryDateGetDayCall(value) {
|
||||
try {
|
||||
getDay.call(value);
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
var toStr = Object.prototype.toString;
|
||||
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;
|
||||
}
|
||||
return hasToStringTag ? tryDateObject(value) : toStr.call(value) === dateClass;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue