JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 23
  • Score
    100M100P100Q69522F
  • License ISC

Defines new (or modifies existing) properties (using Object.defineProperty, setting `configurable: true` by default

Package Exports

  • define-configurable

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 (define-configurable) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

define-configurable

Build Status js-standard-style npm version Coverage Status

define(props)

Defines new (or modifies existing) properties (using Object.defineProperty) on an object passed to define as this, setting configurable: true by default

  • props (object) - Properties to set
var define = require('vigour-util/define')
var subject = {}
var props = [
  { one: true },
  { two: function () {
      console.log('do nothing')
    }
  }
]
define.apply(subject, props)