X7ROOT File Manager
Current Path:
/usr/lib/node_modules/npm/node_modules/is-date-object
usr
/
lib
/
node_modules
/
npm
/
node_modules
/
is-date-object
/
ðŸ“
..
📄
.jscs.json
(2.81 KB)
📄
.npmignore
(587 B)
📄
.travis.yml
(1.12 KB)
📄
CHANGELOG.md
(421 B)
📄
LICENSE
(1.06 KB)
📄
Makefile
(3.74 KB)
📄
README.md
(1.71 KB)
📄
index.js
(551 B)
📄
package.json
(1.55 KB)
📄
test.js
(1.17 KB)
Editing: index.js
'use strict'; var getDay = Date.prototype.getDay; var tryDateObject = function tryDateObject(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; };
Upload File
Create Folder