1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 19:42:38 +02:00
Oinktube/node_modules/gopd
2024-03-07 11:31:51 -03:00
..
.github Update npm and add the jquery mask 2024-03-07 11:31:51 -03:00
test Update npm and add the jquery mask 2024-03-07 11:31:51 -03:00
.eslintrc Update npm and add the jquery mask 2024-03-07 11:31:51 -03:00
CHANGELOG.md Update npm and add the jquery mask 2024-03-07 11:31:51 -03:00
index.js Update npm and add the jquery mask 2024-03-07 11:31:51 -03:00
LICENSE Update npm and add the jquery mask 2024-03-07 11:31:51 -03:00
package.json Update npm and add the jquery mask 2024-03-07 11:31:51 -03:00
README.md Update npm and add the jquery mask 2024-03-07 11:31:51 -03: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');
}