Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
unknown fe79185e87 ali aslani 1 rok temu
..
.github ali aslani 1 rok temu
test ali aslani 1 rok temu
.eslintrc ali aslani 1 rok temu
CHANGELOG.md ali aslani 1 rok temu
LICENSE ali aslani 1 rok temu
README.md ali aslani 1 rok temu
index.js ali aslani 1 rok temu
package.json ali aslani 1 rok temu

README.md

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');
}