PHP 7.4.33
Preview: index.js Size: 588 B
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/has-property-descriptors/index.js
'use strict';

var $defineProperty = require('es-define-property');

var hasPropertyDescriptors = function hasPropertyDescriptors() {
	return !!$defineProperty;
};

hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
	// node v0.6 has a bug where array lengths can be Set but not Defined
	if (!$defineProperty) {
		return null;
	}
	try {
		return $defineProperty([], 'length', { value: 1 }).length !== 1;
	} catch (e) {
		// In Firefox 4-22, defining length on an array throws an exception.
		return true;
	}
};

module.exports = hasPropertyDescriptors;

Directory Contents

Dirs: 2 × Files: 7
Name Size Perms Modified Actions
.github DIR
- drwxr-xr-x 2025-03-28 11:04:36
Edit Download
test DIR
- drwxr-xr-x 2025-03-28 11:04:36
Edit Download
173 B lrw-r--r-- 2025-03-28 11:04:36
Edit Download
139 B lrw-r--r-- 2025-03-28 11:04:36
Edit Download
2.59 KB lrw-r--r-- 2025-03-28 11:04:36
Edit Download
588 B lrw-r--r-- 2025-03-28 11:04:36
Edit Download
1.04 KB lrw-r--r-- 2025-03-28 11:04:36
Edit Download
2.04 KB lrw-r--r-- 2025-03-28 11:04:36
Edit Download
2.15 KB lrw-r--r-- 2025-03-28 11:04:36
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).