JSPM

set-prop-get-value

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

set a new property in a js object and return the value of the given property

Package Exports

  • set-prop-get-value

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

Readme

set-prop-get-value

set a new property in a js object and return the value of the given property

Build StatusCode Coverage 100%ISC LicenseNodeJS

JavaScript Style Guide

api

const setProp = require('set-prop-get-value')

setProp(object, prop_name, prop_value)

example

const setProp = require('set-prop-get-value')

let someObject = {}

setProp(someObject, 'hello', 'world')
// should return `world`
// and now `someObject` should have the new prop `hello: 'world'`

ISC License (ISC)