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

  • 3.2.0
  • 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

object-get-own-property-descriptor-x

Sham for ES6 Object.getOwnPropertyDescriptor

Version: 3.2.0
Author: Xotic750 Xotic750@gmail.com
License: MIT
Copyright: Xotic750

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

var getOwnPropertyDescriptor = require('object-get-own-property-descriptor-x');
var obj = { bar: 42 };
var d = getOwnPropertyDescriptor(o, 'bar');
// d is {
//   configurable: true,
//   enumerable: true,
//   value: 42,
//   writable: true
// }

Keywords

FAQs

Package last updated on 14 Sep 2017

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