Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gopd

ljharb208.6mMIT1.2.0TypeScript support: included

Object.getOwnPropertyDescriptor, but accounts for IE's broken implementation.

ecmascript, javascript, getownpropertydescriptor, property, descriptor

readme

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

changelog

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

v1.2.0 - 2024-12-03

Commits

  • [New] add gOPD entry point; remove get-intrinsic 5b61232

v1.1.0 - 2024-11-29

Commits

  • [New] add types f585e39
  • [Dev Deps] update @ljharb/eslint-config, auto-changelog, tape 0b8e4fd
  • [Dev Deps] update aud, npmignore, tape 48378b2
  • [Dev Deps] update @ljharb/eslint-config, aud, tape 78099ee
  • [Tests] replace aud with npm audit 4e0d0ac
  • [meta] add missing engines.node 1443316
  • [Deps] update get-intrinsic eee5f51
  • [Deps] update get-intrinsic 550c378
  • [Dev Deps] add missing peer dep 8c2ecf8

v1.0.1 - 2022-11-01

Commits

  • [Fix] actually export gOPD instead of dP 4b624bf

v1.0.0 - 2022-11-01

Commits

  • Initial implementation, tests, readme 0911e01
  • Initial commit b84e33f
  • [actions] add reusable workflows 12ae28a
  • npm init 280118b
  • [meta] add auto-changelog bb78de5
  • [meta] create FUNDING.yml; add funding in package.json 11c22e6
  • [meta] use npmignore to autogenerate an npmignore file 4f4537a
  • Only apps should have lockfiles c567022