JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 327
  • Score
    100M100P100Q98883F
  • License MIT

Sham for Object.defineProperty

Package Exports

  • object-define-property-x

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (object-define-property-x) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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

object-define-property-x

Sham for Object.defineProperties

module.exports(object, prop, properties)Object

This method defines new or modifies existing properties directly on an object, returning the object.

Kind: Exported function
Returns: Object - The object that was passed to the function.

Param Type Description
object Object The object on which to define or modify properties.
pro * The name or Symbol of the property to be defined or modified.
properties Object An object whose own enumerable properties constitute descriptors for the properties to be defined or modified.

Example

import defineProperty from 'object-define-property-x';

const obj = {};
defineProperty(obj, 'key', {
  enumerable: false,
  configurable: false,
  writable: false,
  value: 'static',
});