PHP 7.4.33
Preview: index.js Size: 844 B
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/is-bigint/index.js
'use strict';

var hasBigInts = require('has-bigints')();

if (hasBigInts) {
	var bigIntValueOf = BigInt.prototype.valueOf;
	/** @type {(value: object) => value is BigInt} */
	var tryBigInt = function tryBigIntObject(value) {
		try {
			bigIntValueOf.call(value);
			return true;
		} catch (e) {
		}
		return false;
	};

	/** @type {import('.')} */
	module.exports = function isBigInt(value) {
		if (
			value === null
			|| typeof value === 'undefined'
			|| typeof value === 'boolean'
			|| typeof value === 'string'
			|| typeof value === 'number'
			|| typeof value === 'symbol'
			|| typeof value === 'function'
		) {
			return false;
		}
		if (typeof value === 'bigint') {
			return true;
		}

		return tryBigInt(value);
	};
} else {
	/** @type {import('.')} */
	module.exports = function isBigInt(value) {
		return false && value;
	};
}

Directory Contents

Dirs: 2 × Files: 9
Name Size Perms Modified Actions
.github DIR
- drwxr-xr-x 2025-03-28 11:04:31
Edit Download
test DIR
- drwxr-xr-x 2025-03-28 11:04:31
Edit Download
43 B lrw-r--r-- 2025-03-28 11:04:31
Edit Download
139 B lrw-r--r-- 2025-03-28 11:04:31
Edit Download
8.91 KB lrw-r--r-- 2025-03-28 11:04:31
Edit Download
90 B lrw-r--r-- 2025-03-28 11:04:31
Edit Download
844 B lrw-r--r-- 2025-03-28 11:04:31
Edit Download
1.05 KB lrw-r--r-- 2025-03-28 11:04:31
Edit Download
2.02 KB lrw-r--r-- 2025-03-28 11:04:31
Edit Download
1.58 KB lrw-r--r-- 2025-03-28 11:04:31
Edit Download
114 B lrw-r--r-- 2025-03-28 11:04:31
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).