gopd (1.2.0)

Published 2026-02-24 13:57:25 +00:00 by atheaadmin

Installation

registry=
npm install gopd@1.2.0
"gopd": "1.2.0"

About this package

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

Dependencies

Development Dependencies

ID Version
@arethetypeswrong/cli ^0.17.0
@ljharb/eslint-config ^21.1.1
@ljharb/tsconfig ^0.2.0
@types/tape ^5.6.5
auto-changelog ^2.5.0
encoding ^0.1.13
eslint =8.8.0
evalmd ^0.0.19
in-publish ^2.0.1
npmignore ^0.3.1
safe-publish-latest ^2.0.0
tape ^5.9.0
typescript next

Keywords

ecmascript javascript getownpropertydescriptor property descriptor
Details
npm
2026-02-24 13:57:25 +00:00
0
Jordan Harband
MIT
latest
4.5 KiB
Assets (1)
gopd-1.2.0.tgz 4.5 KiB
Versions (1) View all
1.2.0 2026-02-24