PHP 8.2.30
Preview: index.js Size: 551 B
//lib/node_modules/npm/node_modules/is-date-object/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;
};

Directory Contents

Dirs: 0 × Files: 10

Name Size Perms Modified Actions
2.81 KB lrw-r--r-- 2021-03-10 14:36:38
Edit Download
587 B lrw-r--r-- 2021-03-10 14:36:38
Edit Download
1.12 KB lrw-r--r-- 2021-03-10 14:36:38
Edit Download
421 B lrw-r--r-- 2021-03-10 14:36:38
Edit Download
551 B lrw-r--r-- 2021-03-10 14:36:38
Edit Download
1.06 KB lrw-r--r-- 2021-03-10 14:36:38
Edit Download
3.74 KB lrw-r--r-- 2021-03-10 14:36:38
Edit Download
1.55 KB lrw-r--r-- 2021-03-10 14:36:38
Edit Download
1.71 KB lrw-r--r-- 2021-03-10 14:36:38
Edit Download
1.17 KB lrw-r--r-- 2021-03-10 14:36:38
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).