JSPM

nv-facutil-defp

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

define property

Package Exports

  • nv-facutil-defp

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

Readme

nv-facutil-defp

  • nv-facutil-defp is a simple-util for defineProperty

install

  • npm install nv-facutil-defp

usage

example

const defp = require("nv-facutil-defp");

defp.ABBR_MD
    {
        e: 'enumerable',
        w: 'writable',
        c: 'configurable',
        enumerable: 'e',
        writable: 'w',
        configurable: 'c'
    }


var o = {a:100,b:200,c:300}
defp.false_e(o,'a','c')

> o
{ b: 200 }

> Object.getOwnPropertyDescriptors(o)
{
  a: { value: 100, writable: true, enumerable: false, configurable: true },
  b: { value: 200, writable: true, enumerable: true, configurable: true },
  c: { value: 300, writable: true, enumerable: false, configurable: true }
}
>

API

  • defp.true_e(obj,...props)
  • defp.true_w(obj,...props)
  • defp.true_ew(obj,...props)
  • defp.true_c(obj,...props)
  • defp.true_ec(obj,...props)
  • defp.true_wc(obj,...props)
  • defp.true_ewc(obj,...props)
  • defp.false_e(obj,...props)
  • defp.false_w(obj,...props)
  • defp.false_ew(obj,...props)
  • defp.false_c(obj,...props)
  • defp.false_ec(obj,...props)
  • defp.false_wc(obj,...props)
  • defp.false_ewc(obj,...props)
  • defp.ABBR_MD

LICENSE

  • ISC