wavelength_server/websocket_server/node_modules/gopd
2024-10-30 15:12:52 -05:00
..
.github add websocket server to this dir. fix stuff for client 2024-10-30 15:12:52 -05:00
test add websocket server to this dir. fix stuff for client 2024-10-30 15:12:52 -05:00
.eslintrc add websocket server to this dir. fix stuff for client 2024-10-30 15:12:52 -05:00
CHANGELOG.md add websocket server to this dir. fix stuff for client 2024-10-30 15:12:52 -05:00
index.js add websocket server to this dir. fix stuff for client 2024-10-30 15:12:52 -05:00
LICENSE add websocket server to this dir. fix stuff for client 2024-10-30 15:12:52 -05:00
package.json add websocket server to this dir. fix stuff for client 2024-10-30 15:12:52 -05:00
README.md add websocket server to this dir. fix stuff for client 2024-10-30 15:12:52 -05: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');
}