object-define-property-x
Sham for Object.defineProperty
Last updated 5 years ago by xotic750 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install object-define-property-x 
SYNC missed versions from official npm registry.

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

Current Tags

  • 5.1.2                                ...           latest (5 years ago)

31 Versions

  • 5.1.2                                ...           5 years ago
  • 5.1.1                                ...           5 years ago
  • 5.1.0                                ...           5 years ago
  • 5.0.17                                ...           5 years ago
  • 5.0.16                                ...           5 years ago
  • 5.0.15                                ...           5 years ago
  • 5.0.14                                ...           5 years ago
  • 5.0.13                                ...           5 years ago
  • 5.0.12                                ...           5 years ago
  • 5.0.11                                ...           5 years ago
  • 5.0.10                                ...           5 years ago
  • 5.0.9                                ...           5 years ago
  • 5.0.8                                ...           5 years ago
  • 5.0.7                                ...           5 years ago
  • 5.0.6                                ...           5 years ago
  • 5.0.5                                ...           5 years ago
  • 5.0.4                                ...           5 years ago
  • 5.0.3                                ...           5 years ago
  • 5.0.2                                ...           5 years ago
  • 5.0.1                                ...           5 years ago
  • 5.0.0                                ...           5 years ago
  • 4.1.0                                ...           7 years ago
  • 4.0.0                                ...           7 years ago
  • 3.2.0                                ...           7 years ago
  • 3.1.0                                ...           7 years ago
  • 3.0.1                                ...           7 years ago
  • 3.0.0                                ...           7 years ago
  • 2.1.1                                ...           7 years ago
  • 2.1.0                                ...           7 years ago
  • 2.0.0                                ...           7 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Total 1
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0

© 2010 - cnpmjs.org x YWFE | Home | YWFE