slovocast/app/node_modules/gopd
2024-04-25 22:37:41 -04:00
..
.github Get express going with handlebars for the app, maybe, this time. 2024-04-25 22:37:41 -04:00
test Get express going with handlebars for the app, maybe, this time. 2024-04-25 22:37:41 -04:00
.eslintrc Get express going with handlebars for the app, maybe, this time. 2024-04-25 22:37:41 -04:00
CHANGELOG.md Get express going with handlebars for the app, maybe, this time. 2024-04-25 22:37:41 -04:00
index.js Get express going with handlebars for the app, maybe, this time. 2024-04-25 22:37:41 -04:00
LICENSE Get express going with handlebars for the app, maybe, this time. 2024-04-25 22:37:41 -04:00
package.json Get express going with handlebars for the app, maybe, this time. 2024-04-25 22:37:41 -04:00
README.md Get express going with handlebars for the app, maybe, this time. 2024-04-25 22:37:41 -04: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');
}