ruscomap/node_modules/gopd
2024-07-16 17:04:32 +02:00
..
.github add: tutt'cos' 2024-06-30 22:56:19 +02:00
test add: tutt'cos' 2024-06-30 22:56:19 +02:00
.eslintrc add: tutt'cos' 2024-06-30 22:56:19 +02:00
CHANGELOG.md add: tutt'cos' 2024-06-30 22:56:19 +02:00
index.js add: tutt'cos' 2024-06-30 22:56:19 +02:00
LICENSE add: tutt'cos' 2024-06-30 22:56:19 +02:00
package.json aggiunto supporto db 2024-07-16 17:04:32 +02:00
README.md add: tutt'cos' 2024-06-30 22:56:19 +02:00

gopd Version Badge

github actions coverage License Downloads

npm badge

Object.getOwnPropertyDescriptor, but accounts for IE's broken implementation.

Usage

var gOPD = require('gopd');
var assert = require('assert');

if (gOPD) {
	assert.equal(typeof gOPD, 'function', 'descriptors supported');
	// use gOPD like Object.getOwnPropertyDescriptor here
} else {
	assert.ok(!gOPD, 'descriptors not supported');
}