Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

object-get-own-property-descriptor-x

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-get-own-property-descriptor-x

Sham for ES6 Object.getOwnPropertyDescriptor

  • 4.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.7K
decreased by-43.86%
Maintainers
1
Weekly downloads
 
Created
Source

Travis status Dependency status devDependency status npm version jsDelivr hits bettercodehub score Coverage Status

object-get-own-property-descriptor-x

Sham for ES6 Object.getOwnPropertyDescriptor

module.exportsObject

This method returns a property descriptor for an own property (that is, one directly present on an object and not in the object's prototype chain) of a given object.

Kind: Exported member
Returns: Object - A property descriptor of the given property if it exists on the object, undefined otherwise.

ParamTypeDescription
object*The object in which to look for the property.
property*The name of the property whose description is to be retrieved.

Example

import getOwnPropertyDescriptor from 'object-get-own-property-descriptor-x';
const obj = {bar: 42};
console.log(getOwnPropertyDescriptor(o, 'bar'));
// {
//   configurable: true,
//   enumerable: true,
//   value: 42,
//   writable: true
// }

Keywords

FAQs

Package last updated on 28 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc